     
     func test_contentsOfDirectoryAtPath() {
         let fm = NSFileManager.defaultManager()
-        let path = "/tmp/testdir"
-        let itemPath1 = "/tmp/testdir/item"
-        let itemPath2 = "/tmp/testdir/item2"
+        let testDirName = "testdir\(NSUUID().UUIDString)"
+        let path = "/tmp/\(testDirName)"
+        let itemPath1 = "/tmp/\(testDirName)/item"
+        let itemPath2 = "/tmp/\(testDirName)/item2"
         
         ignoreError { try fm.removeItem(atPath: path) }
         

            XCTFail()
        }
        
        let subDirPath = "/tmp/testdir/testdir2"
        let subDirItemPath = "/tmp/testdir/testdir2/item"
        do {
            try fm.createDirectory(atPath: subDirPath, withIntermediateDirectories: false, attributes: nil)
            fm.createFile(atPath: subDirItemPath, contents: NSData(), attributes: nil)

            XCTAssert((attributes[NSFilePosixPermissions] as? NSNumber)?.int16Value == 0o0600)
        }
        catch { XCTFail("\(error)") }

        do {
            try fm.removeItem(atPath: path)
        } catch {
            XCTFail("Failed to clean up files")
        }
    }
    
    func test_pathEnumerator() {
        let fm = NSFileManager.defaultManager()
        let testDirName = "testdir\(NSUUID().UUIDString)"
        let basePath = "/tmp/\(testDirName)"
        let itemPath = "/tmp/\(testDirName)/item"
        let basePath2 = "/tmp/\(testDirName)/path2"
        let itemPath2 = "/tmp/\(testDirName)/path2/item"
        
        ignoreError { try fm.removeItem(atPath: basePath) }
        
