Page MenuHomePhabricator

Use phutil functions to copy/move files
ClosedPublic

Authored by alexmv on Jul 11 2016, 10:45 PM.
Tags
None
Referenced Files
F19943989: D16273.id39148.diff
Thu, Apr 16, 7:40 AM
F19939100: D16273.id39145.diff
Tue, Apr 14, 9:40 AM
F19819026: D16273.id39148.diff
Mar 6 2026, 2:02 AM
F19726645: D16273.id.diff
Feb 13 2026, 6:51 PM
F19509439: D16273.diff
Jan 10 2026, 7:53 PM
F19503111: D16273.id.diff
Jan 8 2026, 9:25 PM
F19166177: D16273.diff
Dec 15 2025, 6:52 PM
F19050661: D16273.id39155.diff
Nov 27 2025, 8:40 PM
Subscribers

Details

Summary

The cp and mv commands, when run from a Windows
environment, error out. Use library functions from Filesystem
for cross-platform compatibility.

Test Plan

Ran arc lint with auto-fix lint errors on both Linux and
Windows.

Diff Detail

Repository
rARC Arcanist
Branch
upstream-windows-lintpatcher
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13024
Build 16641: arc lint + arc unit

Event Timeline

alexmv retitled this revision from to Provide windows command-line equivalents for `cp` and `mv` commands.
alexmv updated this object.
alexmv edited the test plan for this revision. (Show Details)
epriestley added a reviewer: epriestley.

These should go in Filesystem in libphutil, as copyFile($src, $dst) and something like overwriteFile($src, $dst), and have unit tests so they survive the coming apocalypse in T8298 / D15675.

This revision now requires changes to proceed.Jul 11 2016, 11:23 PM
alexmv retitled this revision from Provide windows command-line equivalents for `cp` and `mv` commands to Use phutil functions to copy/move files.Jul 12 2016, 12:20 AM
alexmv updated this object.
alexmv edited edge metadata.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 12 2016, 1:26 PM

Thanks! Looks like you're already in Blessed Committers. I added you to Community for good measure.

This revision was automatically updated to reflect the committed changes.