3 This file is part of libmspfs
4 Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
18 Gets information about a file. Returns 0 on success or -1 on error. This
19 version can be used to check for file existence and get information in one
22 int stat(const Path &fn, struct stat &st);
25 Returns information about a file. This version throws an exception if an error
28 struct stat stat(const Path &fn);
30 /// Gets information about a file, without following symbolic links
31 int lstat(const Path &fn, struct stat &st);
33 /// Returns information about a file, without following symbolic links
34 struct stat lstat(const Path &fn);
36 /// Tests for existence of a file
37 bool exists(const Path &path);
39 /// Tests whether a path refers to an existing regular file
40 bool is_reg(const Path &path);
42 /// Tests whether a path refers to an existing directory
43 bool is_dir(const Path &path);
45 /// Tests whether a path refers to a symbolic link
46 bool is_link(const Path &path);