#ifndef FILE_INFO_H
#define FILE_INFO_H
-#include <ctime>
+#include <boost/utility.hpp>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <boost/utility.hpp>
-#include "LString.h"
+
+#include <ctime>
+#include <string>
+
namespace lyx {
namespace support {
/** Get information about file.
If link is true, the information is about the link itself, not
the file that is obtained by tracing the links. */
- explicit FileInfo(string const & path, bool link = false);
+ explicit FileInfo(std::string const & path, bool link = false);
/// File descriptor
explicit FileInfo(int fildes);
/// Query a new file
- FileInfo & newFile(string const & path, bool link = false);
+ FileInfo & newFile(std::string const & path, bool link = false);
/// Query a new file descriptor
FileInfo & newFile(int fildes);
mode_t getMode() const;
/// Constructs standard mode string (ls style)
- string modeString() const;
+ std::string modeString() const;
///
time_t getModificationTime() const;
/// Total file size in bytes
off_t getSize() const;
- /// Number of hard links
- nlink_t getNumberOfLinks() const;
-
/// User ID of owner
uid_t getUid() const;
///
int err_;
///
- string fname_;
+ std::string fname_;
};
} // namespace support