3 This file is part of libmspfs
4 Copyright © 2006-2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
19 Gets information about a file. Returns 0 on success or -1 on error. This
20 version can be used to check for file existence and get information in one
23 int stat(const Path &fn, struct stat &st);
26 Returns information about a file. This version throws an exception if an error
29 struct stat stat(const Path &fn);
31 /// Tests for existence of a file
32 bool exists(const Path &path);
34 /// Tests whether a path refers to an existing regular file
35 bool is_reg(const Path &path);
37 /// Tests whether a path refers to an existing directory
38 bool is_dir(const Path &path);