]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
isome more FileName shuffling
[lyx.git] / src / support / filetools.h
index c8872ebce1e00cce9cc98f1fdf7a74b6cad3aa9f..cc9ff79bfde4ae86e9edc5bc278463e96d2a1398 100644 (file)
@@ -76,24 +76,15 @@ FileName const fileSearch(std::string const & path,
 std::vector<FileName> const dirList(FileName const & dir,
                                       std::string const & ext = std::string());
 
-/** Is directory read only?
-  returns
-    true: dir writeable
-    false: not writeable
-*/
-bool isDirWriteable(FileName const & path);
-
-/** Is a file readable ?
-  Returns true if the file `path' is readable.
- */
-bool isFileReadable(FileName const & path);
-
 ///
 bool isLyXFilename(std::string const & filename);
 
 ///
 bool isSGMLFilename(std::string const & filename);
 
+///
+bool isValidLaTeXFilename(std::string const & filename);
+
 /** Returns the path of a library data file.
     Search the file name.ext in the subdirectory dir of
       -# user_lyxdir
@@ -314,4 +305,14 @@ cmd_ret const runCommand(std::string const & cmd);
 } // namespace support
 } // namespace lyx
 
+/// The following functions are implemented in minizip/zipunzip.cpp, and are not in
+/// the lyx::support namespace
+
+/// zip several files to a zipfile. In-zip filenames are also specified
+bool zipFiles(std::string const & zipfile, std::vector<std::pair<std::string, std::string> > const & files);
+
+/// Unzip a zip file to a directory
+bool unzipToDir(std::string const & zipfile, std::string const & path);
+
+
 #endif