1. Takeshi Watanabe
  2. gdc

Commits

Takeshi Watanabe  committed 1941e2d

use full name of std.file.getcwd

  • Participants
  • Parent commits 0d65aed
  • Branches default

Comments (0)

Files changed (1)

File d/phobos2/std/path.d

View file
  • Ignore whitespace
 import std.algorithm;
 import std.array;
 import std.conv;
-import std.file: getcwd;
+import std.file;
 import std.string;
 import std.traits;
 
     Throws:
     $(D Exception) if the specified _base directory is not absolute.
 */
-string absolutePath(string path, string base = getcwd())
+string absolutePath(string path, string base = std.file.getcwd())
     // TODO: @safe (BUG 6405) pure (because of buildPath())
 {
     if (path.empty)  return null;
     $(D Exception) if the specified _base directory is not absolute.
 */
 string relativePath(CaseSensitive cs = CaseSensitive.osDefault)
-    (string path, string base = getcwd())
+    (string path, string base = std.file.getcwd())
     //TODO: @safe  (object.reserve(T[]) should be @trusted)
 {
     if (!isAbsolute(path)) return path;
     {
         return path;
     }
-    auto myDir = getcwd;
+    auto myDir = std.file.getcwd;
     if (path.startsWith(curdir))
     {
         auto p = path[curdir.length .. $];
 {
     version (Posix)
     {
-        auto myDir = getcwd();
+        auto myDir = std.file.getcwd();
         scope(exit) std.file.chdir(myDir);
         std.file.chdir("/");
         assert(rel2abs(".") == "/", rel2abs("."));