Go to the first, previous, next, last section, table of contents.


Name clashes

When writing a file to disk, its long name (primary name) or short name may collide with an already existing file or directory. This may happen for all commands which create new directory entries, such as mcopy, mmd, mren, mmove, mwrite and mread. When a name clash happens, mtools asks you what it should do. It offers several choices:

overwrite
Overwrites the existing file. It is not possible to overwrite a directory with a file.
rename
Renames the newly created file. Mtools prompts for the new filename
autorename
Renames the newly created file. Mtools chooses a name by itself, without prompting
skip
Gives up on this file, and moves on to the next (if any)

To chose one of these actions, type its first letter at the prompt. If you use a lower case letter, the action only applies for this file only, if you use an upper case letter, the action applies to all files, and you won't be prompted again.

You may also chose actions (for all files) on the command line, when invoking mtools:

-o
Overwrites primary names by default.
-O
Overwrites secondary names by default.
-r
Renames primary name by default.
-R
Renames secondary name by default.
-a
Autorenames primary name by default.
-A
Autorenames secondary name by default.
-s
Skip primary name by default.
-S
Skip secondary name by default.
-m
Ask user what to do with primary name.
-M
Ask user what to do with secondary name.

By default, the user is prompted if the primary name clashes, and the secondary name is autorenamed.

If a name clash occurs in a Unix directory, mtools only asks whether to overwrite the file, or to skip it.


Go to the first, previous, next, last section, table of contents.