utils-file: default args for canonicalize_filename / determine_dtype
Make a little easier to use
This commit is contained in:
@ -50,7 +50,7 @@ bool check_dir(const std::string& path, bool readable, bool writeable);
|
|||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
std::string canonicalize_filename(const std::string& path, const std::string& relative_to);
|
std::string canonicalize_filename(const std::string& path, const std::string& relative_to="");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Expand the filesystem path (as per wordexp(3))
|
* Expand the filesystem path (as per wordexp(3))
|
||||||
@ -120,7 +120,7 @@ enum {
|
|||||||
* @return DT_REG, DT_DIR, DT_LNK, or DT_UNKNOWN (other values are not supported
|
* @return DT_REG, DT_DIR, DT_LNK, or DT_UNKNOWN (other values are not supported
|
||||||
* currently)
|
* currently)
|
||||||
*/
|
*/
|
||||||
uint8_t determine_dtype(const std::string& path, bool use_lstat);
|
uint8_t determine_dtype(const std::string& path, bool use_lstat=false);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -226,7 +226,6 @@ Result<std::string> make_temp_dir();
|
|||||||
*/
|
*/
|
||||||
Result<void> remove_directory(const std::string& path);
|
Result<void> remove_directory(const std::string& path);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run some system command
|
* Run some system command
|
||||||
*
|
*
|
||||||
@ -268,11 +267,6 @@ Result<void> play(const std::string& path);
|
|||||||
*/
|
*/
|
||||||
Option<std::string> program_in_path(const std::string& name);
|
Option<std::string> program_in_path(const std::string& name);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace Mu
|
} // namespace Mu
|
||||||
|
|
||||||
#endif /* MU_UTILS_FILE_HH__ */
|
#endif /* MU_UTILS_FILE_HH__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user