Lines Matching refs:path

30 	PathWithLastAccessTimestamp(const BPath path, uint64 lastAccessMillisSinceEpoch)  in PathWithLastAccessTimestamp()  argument
32 fPath(path), in PathWithLastAccessTimestamp()
89 StorageUtils::AppendToString(const BPath& path, BString& result) in AppendToString() argument
91 BFile file(path.Path(), O_RDONLY); in AppendToString()
103 StorageUtils::AppendToFile(const BString& input, const BPath& path) in AppendToFile() argument
105 BFile file(path.Path(), O_WRONLY | O_CREAT | O_APPEND); in AppendToFile()
115 BPath path; in RemoveWorkingDirectoryContents() local
119 result = find_directory(B_USER_CACHE_DIRECTORY, &path); in RemoveWorkingDirectoryContents()
121 result = path.Append(CACHE_DIRECTORY_APP); in RemoveWorkingDirectoryContents()
127 result = ExistsObject(path, &exists, &isDirectory, NULL); in RemoveWorkingDirectoryContents()
131 path.Path()); in RemoveWorkingDirectoryContents()
136 result = RemoveDirectoryContents(path); in RemoveWorkingDirectoryContents()
148 StorageUtils::RemoveDirectoryContents(BPath& path) in RemoveDirectoryContents() argument
150 BDirectory directory(path.Path()); in RemoveDirectoryContents()
192 StorageUtils::RemoveDirectoryContentsRetainingLatestFiles(BPath& path, uint32 countLatestRetained) in RemoveDirectoryContentsRetainingLatestFiles() argument
195 BDirectory directory(path.Path()); in RemoveDirectoryContentsRetainingLatestFiles()
254 StorageUtils::ExistsObject(const BPath& path, in ExistsObject() argument
270 if (-1 == stat(path.Path(), &s)) { in ExistsObject()
298 StorageUtils::CheckCanWriteTo(const BPath& path) in CheckCanWriteTo() argument
309 result = ExistsObject(path, &exists, NULL, NULL); in CheckCanWriteTo()
313 "[%s] - it will be deleted", path.Path()); in CheckCanWriteTo()
315 if (remove(path.Path()) == 0) { in CheckCanWriteTo()
316 HDTRACE("did delete the candidate file [%s]", path.Path()); in CheckCanWriteTo()
318 HDERROR("unable to delete the candidate file [%s]", path.Path()); in CheckCanWriteTo()
324 BFile file(path.Path(), O_WRONLY | O_CREAT); in CheckCanWriteTo()
327 path.Path()); in CheckCanWriteTo()
333 BFile file(path.Path(), O_RDONLY); in CheckCanWriteTo()
337 path.Path()); in CheckCanWriteTo()
344 path.Path()); in CheckCanWriteTo()
360 StorageUtils::LocalWorkingFilesPath(const BString leaf, BPath& path, in LocalWorkingFilesPath() argument
383 path.SetTo(resultPath.Path()); in LocalWorkingFilesPath()
385 path.Unset(); in LocalWorkingFilesPath()
395 StorageUtils::LocalWorkingDirectoryPath(const BString leaf, BPath& path, in LocalWorkingDirectoryPath() argument
418 path.SetTo(resultPath.Path()); in LocalWorkingDirectoryPath()
420 path.Unset(); in LocalWorkingDirectoryPath()
430 StorageUtils::SwapExtensionOnPath(BPath& path, const char* extension) in SwapExtensionOnPath() argument
433 status_t result = path.GetParent(&parent); in SwapExtensionOnPath()
435 path.SetTo(parent.Path(), in SwapExtensionOnPath()
436 SwapExtensionOnPathComponent(path.Leaf(), extension).String()); in SwapExtensionOnPath()
464 StorageUtils::DumpExportRepositoryDataPath(BPath& path, const LanguageRef language) in DumpExportRepositoryDataPath() argument
468 return LocalWorkingFilesPath(leaf, path); in DumpExportRepositoryDataPath()
478 StorageUtils::DumpExportReferenceDataPath(BPath& path, const LanguageRef language) in DumpExportReferenceDataPath() argument
482 return LocalWorkingFilesPath(leaf, path); in DumpExportReferenceDataPath()
487 StorageUtils::IconTarPath(BPath& path) in IconTarPath() argument
489 return LocalWorkingFilesPath("pkgicon-all.tar", path); in IconTarPath()
494 StorageUtils::DumpExportPkgDataPath(BPath& path, const BString& repositorySourceCode, in DumpExportPkgDataPath() argument
499 return LocalWorkingFilesPath(leaf, path); in DumpExportPkgDataPath()