Rename copy_file/2 to file_copy/2

This commit is contained in:
Adrián Arroyo Calle
2022-12-11 00:08:41 +01:00
parent c6aa2068e2
commit 5f703afed1
4 changed files with 16 additions and 13 deletions

View File

@@ -71,7 +71,7 @@ In this library, directories and files are represented as
directory_exists/1,
delete_file/1,
rename_file/2,
copy_file/2,
file_copy/2,
delete_directory/1,
make_directory/1,
make_directory_path/1,
@@ -151,10 +151,13 @@ rename_file(File, Renamed) :-
must_be(chars, Renamed),
'$rename_file'(File, Renamed).
copy_file(File, Copied) :-
file_must_exist(File, copy_file/2),
%% file_copy(+File, +Copied).
%
% Succeeds if File is copied to Copied
file_copy(File, Copied) :-
file_must_exist(File, file_copy/2),
must_be(chars, Copied),
'$copy_file'(File, Copied).
'$file_copy'(File, Copied).
%% delete_directory(+Directory).
%