Lines Matching refs:path
112 bool GetParentPath(const UString &path, UString &parentPrefix, UString &name);
463 bool CBrowseDialog::GetParentPath(const UString &path, UString &parentPrefix, UString &name)
467 if (path.IsEmpty())
469 if (_topDirPrefix == path)
471 UString s = path;
829 bool MyBrowseForFolder(HWND owner, LPCWSTR title, LPCWSTR path, UString &resultPath)
836 if (!IsSuperOrDevicePath(path))
837 if (MyStringLen(path) < MAX_PATH)
839 return NShell::BrowseForFolder(owner, title, path, resultPath);
849 if (path)
850 dialog.FilePath = path;
868 GetOpenFileName() for FilePath doesn't support long path
908 // FNERR_INVALIDFILENAME is expected error, if long path was used
962 static void RemoveDotsAndSpaces(UString &path)
964 while (!path.IsEmpty())
966 wchar_t c = path.Back();
969 path.DeleteBack();
978 UString path = path2;
980 path.Replace(L'/', WCHAR_PATH_SEPARATOR);
985 if (IsAbsolutePath(path))
988 if (IsSuperOrDevicePath(path))
990 result = path;
994 start = GetRootPrefixSize(path);
1001 result = path;
1012 if (path.Len() <= start)
1014 if (DoesFileOrDirExist(us2fs(path)))
1016 if (path.Back() == WCHAR_PATH_SEPARATOR)
1018 path.DeleteBack();
1021 int pos = path.ReverseFind(WCHAR_PATH_SEPARATOR) + 1;
1022 UString cur = path.Ptr(pos);
1025 path.DeleteFrom(pos);
1027 result.Insert(0, path);
1031 result += path.Left(start);
1037 if (start == path.Len())
1039 const int slashPos = path.Find(WCHAR_PATH_SEPARATOR, start);
1040 cur.SetFrom(path.Ptr(start), (slashPos < 0 ? path.Len() : (unsigned)slashPos) - start);
1048 result = path;
1069 bool CorrectFsPath(const UString & /* relBase */, const UString &path, UString &result)
1071 result = path;