Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15456610
D15676.id37769.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
434 B
Referenced Files
None
Subscribers
None
D15676.id37769.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 31, 10:42 AM (4 d, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7728025
Default Alt Text
D15676.id37769.diff (434 B)
Attached To
Mode
D15676: Fix root path finding on Windows
Attached
Detach File
Event Timeline
Log In to Comment