2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
23 #include "std-vector.hh"
24 #include "std-string.hh"
27 search in directories for a file.
29 Abstraction of PATH variable. An interface for searching input files.
30 Search a number of dirs for a file.
32 TODO: add a unix style PATH interface
40 vector<string> directories () const;
41 string find (string name) const;
42 string find (string name, char const *extensions[]);
43 string to_string () const;
44 bool try_append (string str);
45 void append (string str);
46 void parse_path (string);
47 void prepend (string str);
50 bool is_file (string file_name);
51 bool is_dir (string file_name);
53 #endif /* FILE_PATH */