vibe.d beta banner
get vibe.d
0.10.1

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

Function moveFile

Moves or renames a file.

void moveFile (
  GenericPath!(vibe.core.path.PosixPathFormat) from,
  GenericPath!(vibe.core.path.PosixPathFormat) 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-2021 Sönke Ludwig

License

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