// -*- C++-*-
/* lyx-filetool.h : tools functions for file/path handling
this file is part of LyX, the High Level Word Processor
- Copyright 1995-2000, Matthias Ettrich and the LyX Team
+ Copyright 1995-2001, Matthias Ettrich and the LyX Team
*/
#ifndef LYX_FILETOOL_H
/// Strips path from filename
string const OnlyFilename(string const & fname);
-/// Strips filename from path
-string const BasePath(string const & fname);
-
/// Get the contents of a file as a huge string
string const GetFileContents(string const & fname);
-/// Cleanup a path if necessary. Currently only useful with OS/2
-string const CleanupPath(string const & path);
-
/** Check and Replace Environmentvariables ${NAME} in Path.
Replaces all occurences of these, if they are found in the
environment.
/// remove the autosave-file and give a Message if it can't be done
void removeAutosaveFile(string const & filename);
-/** Perform some quite detailed tests to ascertain whether the directory or
- file is readable or writeable. If not, then an error message is returned.
-*/
-///
-bool WriteableDir(string const & dir, string & errorMessage);
-///
-bool ReadableDir(string const & dir, string & errorMessage);
-///
-bool WriteableFile(string const & file, string & errorMessage);
-///
-bool ReadableFile(string const & file, string & errorMessage);
-
#endif