MCPcopy Create free account
hub / github.com/catboost/catboost / ~TWinFileDenyAccessScope

Method ~TWinFileDenyAccessScope

util/folder/path_ut.cpp:614–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 }
613
614 ~TWinFileDenyAccessScope() {
615 try {
616 const TFsPath parent = Name_.Parent();
617 Chmod(parent.c_str(), MODE0777);
618 Chmod(Name_.c_str(), MODE0777);
619 SetAcl((PACL)Acl_.Get(), GRANT_ACCESS);
620 } catch (const yexception& ex) {
621 Cerr << "~TWinFileDenyAccessScope failed: " << ex.AsStrBuf() << Endl;
622 }
623 }
624
625 THolder<void, TLocalFree> SetAcl(PACL oldAcl, ACCESS_MODE accessMode) {
626 DWORD res = 0;

Callers

nothing calls this directly

Calls 5

ParentMethod · 0.80
AsStrBufMethod · 0.80
ChmodFunction · 0.50
c_strMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected