An extension class for System.IO.Item that adds shared methods applicable to both file and directory.
Parent Class
Type | Name | Signature |
---|---|---|
method S | relocate | public static bool relocate(System.IO.Item, System.IO.Directory, string) |
public static bool relocate(Item this, Directory newDir, string newName)
Move this item to another directory and rename it.
This is a convenient method that wraps the functionality of move() and rename() together. It is not a transactional operation. It may fail halfway leaving a moved item yet to be renamed, although it will try its best to restore to the previous status.
Parameters
Returns
Throws