We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 300ac0d commit 522c580Copy full SHA for 522c580
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 83b7215366b72184320580e562370010576de47f
+refs/heads/master: d79330de26b325747dedf3f04b7fdb0194029015
trunk/src/lib/fs.rs
@@ -15,7 +15,7 @@ fn dirname(path p) -> path {
15
let int i = str::rindex(p, os_fs::path_sep as u8);
16
if (i == -1) {
17
i = str::rindex(p, os_fs::alt_path_sep as u8);
18
- if (i == -1) { ret p; }
+ if (i == -1) { ret "."; }
19
}
20
ret str::substr(p, 0u, i as uint);
21
0 commit comments