Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13983536
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, 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)
Attached To
Mode
D15676: Fix root path finding on Windows
Attached
Detach File
Event Timeline
Log In to Comment