vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

Function moveFile

Moves or renames a file.

void moveFile (
  Path from,
  Path to,
  bool copy_fallback = false
) @safe;

void moveFile (
  string from,
  string to,
  bool copy_fallback = false
) @safe;

Parameters

NameDescription
from Path to the file/directory to move/rename.
to The target path
copy_fallback Determines if copy/remove should be used in case of the source and destination path pointing to different devices.
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.