Copyright © 2017-2021 Marc Worrell
Authors: Marc Worrell (marc@worrell.nl).
ensure_dir/1 | Ensure the directory of a file is present. |
os_escape/1 | Simple escape function for command line arguments. |
os_filename/1 | Simple escape function for filenames as commandline arguments. |
ensure_dir(Filename::file:filename_all()) -> ok | {error, term()}
Ensure the directory of a file is present. This will still work if a soft-link in the path refers to a missing directory.
os_escape(A::string() | binary() | undefined) -> string()
Simple escape function for command line arguments
os_filename(A::string() | binary()) -> string()
Simple escape function for filenames as commandline arguments. foo/"bar.jpg -> "foo/\"bar.jpg"; on windows "foo\\\"bar.jpg" (both including quotes!)
Generated by EDoc