Home | History | Annotate | Download | only in Support

Lines Matching full:path

12 // path class.
268 /// @brief Make \a path an absolute path.
270 /// Makes \a path absolute using the current directory if it is not already. An
271 /// empty \a path will result in the current directory.
273 /// /absolute/path => /absolute/path
274 /// relative/../path => <current-directory>/relative/../path
276 /// @param path A path that is modified to be an absolute path.
277 /// @returns errc::success if \a path has been made absolute, otherwise a
279 std::error_code make_absolute(SmallVectorImpl<char> &path);
281 /// @brief Create all the non-existent directories in path.
283 /// @param path Directories to create.
284 /// @returns errc::success if is_directory(path), otherwise a platform
287 std::error_code create_directories(const Twine &path,
290 /// @brief Create the directory in path.
292 /// @param path Directory to create.
293 /// @returns errc::success if is_directory(path), otherwise a platform
296 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true);
305 /// @param to The path to hard link to.
306 /// @param from The path to hard link from. This is created.
311 /// @brief Get the current path.
313 /// @param result Holds the current path on return.
314 /// @returns errc::success if the current path has been stored in result,
318 /// @brief Remove path. Equivalent to POSIX remove().
320 /// @param path Input path.
321 /// @returns errc::success if path has been removed or didn't exist, otherwise a
324 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
328 /// @param from The path to rename from.
329 /// @param to The path to rename to. This is created.
334 /// @param From The path to copy from.
335 /// @param To The path to copy to. This is created.
338 /// @brief Resize path to size. File is resized as if by POSIX truncate().
342 /// @returns errc::success if \a path has been resized to \a size, otherwise a
361 /// @param Path Input path.
362 /// @returns errc::success if the path can be accessed, otherwise a
364 std::error_code access(const Twine &Path, AccessMode Mode);
368 /// @param Path Input path.
370 inline bool exists(const Twine &Path) {
371 return !access(Path, AccessMode::Exist);
376 /// @param Path Input path.
378 inline bool can_execute(const Twine &Path) {
379 return !access(Path, AccessMode::Execute);
384 /// @param Path Input path.
386 inline bool can_write(const Twine &Path) {
387 return !access(Path, AccessMode::Write);
405 /// @param A Input path A.
406 /// @param B Input path B.
426 /// @brief Is path a directory?
428 /// @param path Input path.
429 /// @param result Set to true if \a path is a directory, false if it is not.
433 std::error_code is_directory(const Twine &path, bool &result);
437 inline bool is_directory(const Twine &Path) {
439 return !is_directory(Path, Result) && Result;
448 /// @brief Is path a regular file?
450 /// @param path Input path.
451 /// @param result Set to true if \a path is a regular file, false if it is not.
455 std::error_code is_regular_file(const Twine &path, bool &result);
459 inline bool is_regular_file(const Twine &Path) {
461 if (is_regular_file(Path, Result))
473 /// @brief Is path something that exists but is not a directory,
476 /// @param path Input path.
477 /// @param result Set to true if \a path exists, but is not a directory, regular
481 std::error_code is_other(const Twine &path, bool &result);
485 /// @param path Input path.
489 std::error_code status(const Twine &path, file_status &result);
496 /// @param Path Input path.
497 /// @param Result Set to the size of the file in \a Path.
500 inline std::error_code file_size(const Twine &Path, uint64_t &Result) {
502 std::error_code EC = status(Path, Status);
524 /// @param path Input path.
528 std::error_code status_known(const Twine &path, bool &result);
532 /// Generates a unique path suitable for a temporary file and then opens it as a
534 /// [0-9a-f]. If \a model is not an absolute path, a suitable temporary
546 /// @param Model Name to base unique path off of.
548 /// @param ResultPath Set to the opened file's absolute path.
549 /// @returns errc::success if Result{FD,Path} have been successfully set,
562 /// is not know to the caller, Prefix and Suffix cannot have path separators.
615 /// @brief Get and identify \a path's type based on its content.
617 /// @param path Input path.
621 std::error_code identify_magic(const Twine &path, file_magic &result);
623 std::error_code getUniqueID(const Twine Path, UniqueID &Result);
635 readwrite, ///< May access map via data and modify it. Written to path.
666 /// Return the path to the main executable, given the value of argv[0] from
668 /// may fail and return an empty path.
679 std::string Path;
683 explicit directory_entry(const Twine &path, file_status st = file_status())
684 : Path(path.str())
689 void assign(const Twine &path, file_status st = file_status()) {
690 Path = path.str();
696 const std::string &path() const { return Path; }
699 bool operator==(const directory_entry& rhs) const { return Path == rhs.Path; }
729 /// directory_iterator - Iterates through the entries in path. There is no
736 explicit directory_iterator(const Twine &path, std::error_code &ec) {
740 path.toStringRef(path_storage));
745 ec = detail::directory_iterator_construct(*State, de.path());
798 explicit recursive_directory_iterator(const Twine &path, std::error_code &ec)
800 State->Stack.push(directory_iterator(path, ec));
841 /// Gets the current level. Starting path is at level 0.