10 /** Gets information about a file. Returns 0 on success or -1 on error. This
11 version can be used to check for file existence and get information in one
13 int stat(const Path &fn, struct stat &st);
15 /** Returns information about a file. This version throws an exception if an
17 struct stat stat(const Path &fn);
19 /// Gets information about a file, without following symbolic links
20 int lstat(const Path &fn, struct stat &st);
22 /// Returns information about a file, without following symbolic links
23 struct stat lstat(const Path &fn);
25 /// Tests for existence of a file
26 bool exists(const Path &path);
28 /// Tests whether a path refers to an existing regular file
29 bool is_reg(const Path &path);
31 /// Tests whether a path refers to an existing directory
32 bool is_dir(const Path &path);
34 /// Tests whether a path refers to a symbolic link
35 bool is_link(const Path &path);