Method filesystem.rename
Overload
Renames file or directory.
public static void rename(string path, string newName, FIfExists ifExists = FIfExists.Fail)
Parameters
path (string)
Full path. |
newName (string)
New name without path. Example: |
ifExists (FIfExists) |
Exceptions
ArgumentException
|
FileNotFoundException
path not found. |
AuException
Failed. |
Remarks
Uses API MoveFileEx.