fs_win.h 863 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "winint.h"
  3. #include "defaults.h"
  4. #include <util/generic/strbuf.h>
  5. #include <util/generic/string.h>
  6. namespace NFsPrivate {
  7. bool WinRename(const TString& oldPath, const TString& newPath);
  8. bool WinSymLink(const TString& targetName, const TString& linkName);
  9. bool WinHardLink(const TString& existingPath, const TString& newPath);
  10. TString WinReadLink(const TString& path);
  11. ULONG WinReadReparseTag(HANDLE h);
  12. HANDLE CreateFileWithUtf8Name(const TStringBuf fName, ui32 accessMode, ui32 shareMode, ui32 createMode, ui32 attributes, bool inheritHandle);
  13. bool WinRemove(const TString& path);
  14. bool WinExists(const TString& path);
  15. TString WinCurrentWorkingDirectory();
  16. bool WinSetCurrentWorkingDirectory(const TString& path);
  17. bool WinMakeDirectory(const TString& path);
  18. } // namespace NFsPrivate