11 Gets information about a file. Returns 0 on success or -1 on error. This
12 version can be used to check for file existence and get information in one
15 int stat(const Path &fn, struct stat &st);
18 Returns information about a file. This version throws an exception if an error
21 struct stat stat(const Path &fn);
23 /// Gets information about a file, without following symbolic links
24 int lstat(const Path &fn, struct stat &st);
26 /// Returns information about a file, without following symbolic links
27 struct stat lstat(const Path &fn);
29 /// Tests for existence of a file
30 bool exists(const Path &path);
32 /// Tests whether a path refers to an existing regular file
33 bool is_reg(const Path &path);
35 /// Tests whether a path refers to an existing directory
36 bool is_dir(const Path &path);
38 /// Tests whether a path refers to a symbolic link
39 bool is_link(const Path &path);