Lines Matching defs:path
60 1) there is NUL wchar after path
67 1) there is no NUL wchar after path
117 static void WriteString(Byte *dest, const wchar_t *path)
121 wchar_t c = *path++;
129 bool FillLinkData(CByteBuffer &dest, const wchar_t *path, bool isSymLink, bool isWSL)
131 bool isAbs = IsAbsolutePath(path);
139 ConvertUnicodeToUTF8(path, utf);
157 if (IsSuperPath(path))
159 path += kSuperPathPrefixSize;
160 if (!IsDrivePath(path))
166 size_t len2 = (size_t)MyStringLen(path) * 2;
218 WriteString(p + subOffs + add_Prefix_Len * 2, path);
220 WriteString(p + printOffs, path);
450 bool GetReparseData(CFSTR path, CByteBuffer &reparseData, BY_HANDLE_FILE_INFORMATION *fileInfo)
454 if (!file.OpenReparse(path))
469 static bool CreatePrefixDirOfFile(CFSTR path)
471 FString path2 (path);
484 static bool OutIoReparseData(DWORD controlCode, CFSTR path, void *data, DWORD size)
487 if (!file.Open(path,
499 bool SetReparseData(CFSTR path, bool isDir, const void *data, DWORD size)
502 if (fi.Find(path))
514 if (!NDir::CreateComplexDir(path))
519 CreatePrefixDirOfFile(path);
521 if (!file.Create(path, CREATE_NEW))
526 return OutIoReparseData(my_FSCTL_SET_REPARSE_POINT, path, (void *)(const Byte *)(data), size);
530 bool DeleteReparseData(CFSTR path)
533 if (!GetReparseData(path, reparseData, NULL))
547 return OutIoReparseData(my_FSCTL_DELETE_REPARSE_POINT, path, buf, sizeof(buf));
559 bool GetReparseData(CFSTR path, CByteBuffer &reparseData)
567 // printf("\nreadlink() path = %s \n", path);
568 const ssize_t size = readlink(path, buf, request);
587 bool SetReparseData(CFSTR path, bool isDir, const void *data, DWORD size)
591 // return (symlink(s, path) == 0);
592 UNUSED_VAR(path)
605 // ir = unlink(path);