 
 #if os(Linux)
 import SwiftGlibc
+import Foundation
 #endif
 
 class PerfectLibTests: XCTestCase {

        let ext = path.pathExtension
        XCTAssert("txt" == ext)
    }
	
    func testDirCreate() {
        let path = "/tmp/a/b/c/d/e/f/g"
        do {
            try Dir(path).create()
			
            XCTAssert(Dir(path).exists)
			
            var unPath = path
			
            while unPath != "/tmp" {
                try Dir(unPath).delete()
                unPath = unPath.stringByDeletingLastPathComponent

                name in
                ta.append(name)
            }
						ta.sort()
            XCTAssert(ta == dirs, "\(ta) == \(dirs)")
            for d in dirs {
                try Dir("/tmp/a/\(d)").delete()
            }
