os.RENAME

When file exists at desired path, rename to avoid naming conflict.

Syntax

os.RENAME

Description

Modifier to place file with a modified name when the originally desired path is already taken. Note that a naming conflict can only arise from a path conflict, so an name may be conflicting but not a file’s title.

Examples

Rename on conflict.

Fails to place file due to naming conflict.

Subscribe to our newsletter!