Click or drag to resize

DirectoryMove Method

Overload List
  NameDescription
Public methodStatic memberMove(String, String)
Moves a file or a directory and its contents to a new location.
Remarks

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.

Public methodStatic memberMove(String, String, MoveOptions)
[AlphaFS] Moves a file or a directory and its contents to a new location, MoveOptions can be specified.
Remarks

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.

Public methodStatic memberMove(String, String, PathFormat)
[AlphaFS] Moves a file or a directory and its contents to a new location.
Remarks

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.

Public methodStatic memberMove(String, String, MoveOptions, PathFormat)
[AlphaFS] Moves a file or a directory and its contents to a new location, MoveOptions can be specified.
Remarks

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.

Public methodStatic memberMove(String, String, MoveOptions, CopyMoveProgressRoutine, Object)
[AlphaFS] Moves a file or a directory and its contents to a new location, MoveOptions can be specified, and the possibility of notifying the application of its progress through a callback function.
Remarks

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.

Public methodStatic memberMove(String, String, MoveOptions, CopyMoveProgressRoutine, Object, PathFormat)
[AlphaFS] Moves a file or a directory and its contents to a new location, MoveOptions can be specified, and the possibility of notifying the application of its progress through a callback function.
Remarks

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.

Top
See Also