Lines Matching defs:path

132 BEntry::BEntry(const BDirectory* dir, const char* path, bool traverse)
138 SetTo(dir, path, traverse);
152 BEntry::BEntry(const char* path, bool traverse)
158 SetTo(path, traverse);
205 BEntry::SetTo(const BDirectory* dir, const char* path, bool traverse)
210 if (path && path[0] == '\0') // R5 behaviour
211 path = NULL;
213 // if path is absolute, let the path-only SetTo() do the job
214 if (BPrivate::Storage::is_absolute_path(path))
215 return SetTo(path, traverse);
226 return (fCStatus = _SetTo(dirFD, path, traverse));
237 // if ref-name is absolute, let the path-only SetTo() do the job
250 BEntry::SetTo(const char* path, bool traverse)
254 if (!path)
256 return (fCStatus = _SetTo(-1, path, traverse));
298 BEntry::GetPath(BPath* path) const
303 if (path == NULL)
306 return path->SetTo(this);
384 BEntry::Rename(const char* path, bool clobber)
387 if (path == NULL)
394 if (BPrivate::Storage::is_absolute_path(path)) {
395 error = target.SetTo(path);
401 error = target.fCStatus = target._SetTo(dirFD, path, false);
410 BEntry::MoveTo(BDirectory* dir, const char* path, bool clobber)
419 // NULL path simply means move without renaming
420 if (path == NULL)
421 path = fName;
424 status_t error = target.SetTo(dir, path);
526 /*! Sets the entry to point to the entry specified by the path \a path
532 If \a path is an absolute path, \a dirFD is ignored.
534 If \a dirFD is -1, \a path is considered relative to the current directory
535 (unless it is an absolute path).
541 \param dirFD File descriptor of a directory relative to which path is to
543 \param path Pointer to a path relative to the given directory.
551 BEntry::_SetTo(int dirFD, const char* path, bool traverse)
559 if (!path || strcmp(path, ".") == 0) {
577 } else if (strcmp(path, "..") == 0) {
594 // an ordinary path; analyze it
596 status_t error = BPrivate::Storage::parse_path(path, dirPath,
604 // the supplied path is already a leaf
624 dirFD = _kern_open_dir(-1, path);
628 path = NULL;
662 path = tmpPath;
802 get_ref_for_path(const char* path, entry_ref* ref)
804 status_t error = path && ref ? B_OK : B_BAD_VALUE;
806 BEntry entry(path);