]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
I'll find a solution for the 'dirList problem', Abdel.
[lyx.git] / src / support / filetools.h
index 7fb33baea0518a750f8502454be157f3eeea53e2..383aeac2f8b58cf937d9ba8a56dc5cb29a9d5516 100644 (file)
@@ -152,7 +152,7 @@ std::string const latex_path(std::string const & path,
                latex_path_dots dots = LEAVE_DOTS);
 
 /// Substitutes active latex characters with underscores in filename
-std::string const makeLatexName(std::string const & file);
+FileName const makeLatexName(FileName const & file);
 
 /** Put the name in quotes suitable for the current shell or python,
     depending on \p style. */
@@ -230,11 +230,6 @@ makeRelPath(docstring const & abspath, docstring const & basepath);
 /// Strip filename from path name
 std::string const onlyPath(std::string const & fname);
 
-/** Normalize a path. Constracts path/../path
- *  Also converts paths like /foo//bar ==> /foo/bar
- */
-std::string const normalizePath(std::string const & path);
-
 /// Strips path from filename
 std::string const onlyFilename(std::string const & fname);
 
@@ -280,6 +275,10 @@ typedef std::pair<int, std::string> cmd_ret;
 
 cmd_ret const runCommand(std::string const & cmd);
 
+/// \return list files in a directory having optional extension ext..
+std::vector<FileName> dirList(FileName const & dir,
+               std::string const & ext = empty_string());
+
 } // namespace support
 } // namespace lyx