26#ifndef FSW_PATH_UTILS_H
27# define FSW_PATH_UTILS_H
43 std::vector<std::filesystem::directory_entry>
get_directory_entries(
const std::filesystem::path& path);
51 std::vector<std::filesystem::directory_entry>
get_subdirectories(
const std::filesystem::path& path);
61 bool lstat_path(
const std::string& path,
struct stat& fd_stat);
71 bool stat_path(
const std::string& path,
struct stat& fd_stat);
85 bool stat_path(
const std::string& path,
struct stat& fd_stat,
bool follow_symlink);
Main namespace of libfswatch.
Definition event.cpp:24
bool stat_path(const std::string &path, struct stat &fd_stat, bool follow_symlink)
Wraps a stat(path, fd_stat) call or a lstat(path, fd_stat) call, depending on the value of follow_sym...
Definition path_utils.cpp:66
std::vector< std::filesystem::directory_entry > get_subdirectories(const std::filesystem::path &path)
Gets a vector of direct subdirectories.
Definition path_utils.cpp:47
bool lstat_path(const std::string &path, struct stat &fd_stat)
Wraps a lstat(path, fd_stat) call that invokes perror() if it fails.
Definition path_utils.cpp:80
std::vector< std::filesystem::directory_entry > get_directory_entries(const std::filesystem::path &path)
Gets a vector of direct directory entries.
Definition path_utils.cpp:28