Page MenuHomePhabricator

On Windows, implement "Filesystem::copyFile()" with "copy()"
ClosedPublic

Authored by epriestley on Mar 22 2021, 6:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 15 2026, 3:08 PM
Unknown Object (File)
Feb 25 2026, 5:30 PM
Unknown Object (File)
Jan 28 2026, 1:52 PM
Unknown Object (File)
Jan 14 2026, 5:18 PM
Unknown Object (File)
Jan 13 2026, 3:45 AM
Unknown Object (File)
Dec 2 2025, 10:53 PM
Unknown Object (File)
Dec 2 2025, 10:47 PM
Unknown Object (File)
Nov 25 2025, 5:00 AM
Subscribers
None

Details

Summary

Ref T13562. Currently, "Filesystem::copyFile()" uses "copy", which doesn't work now that we no longer invoke "cmd.exe" by default.

Use "copy()" instead.

Note that this whole function is probably nonsense, but I'll follow up on T13562.

Test Plan
  • Created a standalone script which runs "Filesystem::copyFile()".
    • Before: failed to copy any file.
    • After: succesfully copied normal files.
    • After: failed to copy a file over an existing directory with a reasonable error.
    • After: failed to copy a file over itself with a reasonable error.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable