DirectoryInfoMoveTo Method |
Name | Description | |
---|---|---|
MoveTo(String) | Moves a DirectoryInfo instance and its contents to a new path.
Remarks Use this method to prevent overwriting of an existing directory by default. This method does not work across disk volumes. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
MoveTo(String, MoveOptions) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified.
Remarks Use this method to allow or prevent overwriting of an existing directory. This method does not work across disk volumes unless moveOptions contains CopyAllowed. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
MoveTo(String, PathFormat) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path.
Remarks Use this method to prevent overwriting of an existing directory by default. This method does not work across disk volumes. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
MoveTo(String, MoveOptions, PathFormat) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified.
Remarks Use this method to allow or prevent overwriting of an existing directory. This method does not work across disk volumes unless moveOptions contains CopyAllowed. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified,
and the possibility of notifying the application of its progress through a callback function. Remarks Use this method to allow or prevent overwriting of an existing directory. This method does not work across disk volumes unless moveOptions contains CopyAllowed. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. | |
MoveTo(String, MoveOptions, CopyMoveProgressRoutine, Object, PathFormat) | [AlphaFS] Moves a DirectoryInfo instance and its contents to a new path, MoveOptions can be specified,
and the possibility of notifying the application of its progress through a callback function. Remarks Use this method to allow or prevent overwriting of an existing directory. This method does not work across disk volumes unless moveOptions contains CopyAllowed. Whenever possible, avoid using short file names (such as XXXXXX~1.XXX) with this method. If two directories have equivalent short file names then this method may fail and raise an exception and/or result in undesirable behavior. |