Next: , Previous: , Up: Files   [Contents][Index]


5.26.4 Manipulating Files

Command: delete-file file-name

This function deletes the file called file-name. When called interactively file-name is prompted for.

Command: rename-file file-name new-name

This function attempts to change the name of the file new-name to new-name.

This won’t work from one file system to another or if a file called new-name already exists, in these cases an error is signalled.

This prompts for its arguments when called interactively.

Command: copy-file file-name destination-name

Creates a new copy of the file file-name with the name destination-name.

The access modes of the new file will be the same as those of the original file.

The arguments are prompted for when this function is called interactively.