file-op(2)
[Home]
[Commands]
[Variables]
[Macro-Dev]
[Glossary]
NAME
SYNOPSIS
DESCRIPTION
file-op can be used to perform numerous file system operations. The given argument n must be used to determine the required operation, the value is a bit based flag denoting the operation as follows:
0x010
Log-off and close down the current ftp connect (not a file system operation but functionality was required and it had to go somewhere).
0x020
When this bit is set the command functionality is changed to delete-file, the single argument delete-file is deleted.
0x040
When this bit is set the command functionality is changed to move-file, the specified from-file is moved to to-file.
0x080
When this bit is set the command functionality is changed to copy-file, the specified from-file is copied to to-file.
0x100
When this bit is set the command functionality is changed to making a new directory, the specified dir-name is the name of the new directory. A file or directory of the given name must not already exist.
Only one operation can be performed per invocation. The following bits in the given argument n can be used to effect the behaviour of these operations:
0x01
Enables validity checks, these include a check that the proposed file does not already exist, if so confirmation of writing is requested from the user. Also MicroEmacs checks all other current buffers for one with the proposed file name, if found, again confirmation is requested. Without this flag the command will always succeed wherever possible.
0x02
Creates a backup of any file about to be deleted or over-written. Set help on
$buffer-backup(5) for backup file-name generation.
NOTES
http files are not supported except as the source file when copying. ftp files are fully supported with the restriction that the from and to files cannot both be url (http or ftp) files.
The command is used by
file-browser(3) and
ftp(3) which provides an easy to use interfaces for file manipulation.
SEE ALSO
(c) Copyright JASSPA 2001
Last Modified: 2001/07/14
Generated On: 2001/08/15