       self + Path($0)
     }
     #else
-    return try Path.fileManager.contentsOfDirectory(atPath:path).map {
-      self + Path($0)
-     }
+      #if os(Linux)
+      return try Path.fileManager.contentsOfDirectoryAtPath(path).map {
+        self + Path($0)
+      }
+      #else
+      return try Path.fileManager.contentsOfDirectory(atPath:path).map {
+        self + Path($0)
+      }
+      #endif
     #endif
 
   }

    #if !swift(>=3.0)
    return Path.fileManager.isExecutableFileAtPath(self.path)
    #else
    return Path.fileManager.isExecutableFile(atPath: self.path)
    #endif
  }


    #if !swift(>=3.0)
    return Path.fileManager.isWritableFileAtPath(self.path)
    #else
      #if os(Linux)
      return Path.fileManager.isWritableFileAtPath(self.path)
      #else
      return Path.fileManager.isWritableFile(atPath: self.path)
      #endif
    #endif
  }

