Page MenuHomePhabricator

D15676.id37769.diff
No OneTemporary

D15676.id37769.diff

diff --git a/src/filesystem/Filesystem.php b/src/filesystem/Filesystem.php
--- a/src/filesystem/Filesystem.php
+++ b/src/filesystem/Filesystem.php
@@ -740,6 +740,10 @@
* @task directory
*/
public static function walkToRoot($path, $root = '/') {
+ if (phutil_is_windows() && $root == '/') {
+ $root = getenv('HOMEDRIVE');
+ }
+
$path = self::resolvePath($path);
$root = self::resolvePath($root);

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 21, 7:08 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738706
Default Alt Text
D15676.id37769.diff (434 B)

Event Timeline