Merge pull request #968 from pmoura/add_make_directory_path_predicate

Add make_directory_path/1 predicate to the files library
This commit is contained in:
Mark Thom
2021-05-18 10:26:06 -06:00
committed by GitHub
3 changed files with 19 additions and 0 deletions

View File

@@ -53,6 +53,7 @@
delete_file/1,
delete_directory/1,
make_directory/1,
make_directory_path/1,
working_directory/2,
path_canonical/2,
path_segments/2,
@@ -91,6 +92,10 @@ make_directory(Directory) :-
list_of_chars(Directory),
'$make_directory'(Directory).
make_directory_path(Directory) :-
list_of_chars(Directory),
'$make_directory_path'(Directory).
delete_file(File) :-
file_must_exist(File, delete_file/1),
list_of_chars(File),