Lines Matching refs:path

66 BDirectory::BDirectory(const char* path)
70 SetTo(path);
74 BDirectory::BDirectory(const BDirectory* dir, const char* path)
78 SetTo(dir, path);
157 BDirectory::SetTo(const char* path)
160 status_t error = _SetTo(-1, path, true);
165 error = set_dir_fd(_kern_open_dir(-1, path));
179 BDirectory::SetTo(const BDirectory* dir, const char* path)
181 if (!dir || !path || BPrivate::Storage::is_absolute_path(path)) {
193 status_t error = _SetTo(dirFD, path, true);
198 error = set_dir_fd(_kern_open_dir(dir->fDirFd, path));
228 BDirectory::FindEntry(const char* path, BEntry* entry, bool traverse) const
230 if (path == NULL || entry == NULL)
238 status = entry->SetTo(this, path, traverse);
240 status = entry->SetTo(path, traverse);
253 BDirectory::Contains(const char* path, int32 nodeFlags) const
258 if (!path)
261 // turn the path into a BEntry and let the other version do the work
263 if (BPrivate::Storage::is_absolute_path(path))
264 entry.SetTo(path);
266 entry.SetTo(this, path);
393 BDirectory::CreateDirectory(const char* path, BDirectory* dir)
395 if (!path)
399 status_t error = _kern_create_dir(fDirFd, path,
408 if (InitCheck() != B_OK || BPrivate::Storage::is_absolute_path(path))
409 return dir->SetTo(path);
411 return dir->SetTo(this, path);
416 BDirectory::CreateFile(const char* path, BFile* file, bool failIfExists)
418 if (!path)
427 if (InitCheck() == B_OK && !BPrivate::Storage::is_absolute_path(path))
428 error = realFile->SetTo(this, path, openMode);
430 error = realFile->SetTo(path, openMode);
438 BDirectory::CreateSymLink(const char* path, const char* linkToPath,
441 if (!path || !linkToPath)
445 status_t error = _kern_create_symlink(fDirFd, path, linkToPath,
454 if (InitCheck() != B_OK || BPrivate::Storage::is_absolute_path(path))
455 return link->SetTo(path);
457 return link->SetTo(this, path);
474 BDirectory::GetStatFor(const char* path, struct stat* st) const
481 if (path != NULL) {
482 if (path[0] == '\0')
484 return _kern_read_stat(fDirFd, path, false, st, sizeof(struct stat));
539 create_directory(const char* path, mode_t mode)
541 if (!path)
545 // path, create a BPath object from it and successively add the following
546 // components. Each time we get a new path, we check, if the entry it
548 // to create it. This goes on, until we're done with the input path or
554 // get the next path component
555 status_t error = BPrivate::Storage::parse_first_path_component(path,
568 path += nextComponent;