         defer { fsRep.deallocate() }
 
         guard let dir = opendir(fsRep) else {
-            throw NSError(domain: NSCocoaErrorDomain, code: CocoaError.fileReadNoSuchFile.rawValue, userInfo: [NSFilePathErrorKey: path])
+            throw NSError(domain: NSCocoaErrorDomain, code: CocoaError.fileReadNoSuchFile.rawValue,
+                          userInfo: [NSFilePathErrorKey: path, "NSUserStringVariant": NSArray(object: "Folder")])
         }
         defer { closedir(dir) }
 

            bytesWritten += written
        }
    }

    private func _copyRegularFile(atPath srcPath: String, toPath dstPath: String) throws {
        let srcRep = fileSystemRepresentation(withPath: srcPath)
        let dstRep = fileSystemRepresentation(withPath: dstPath)
        defer {

        guard dstURL.isFileURL else {
            throw NSError(domain: NSCocoaErrorDomain, code: CocoaError.fileWriteUnsupportedScheme.rawValue, userInfo: [NSURLErrorKey : dstURL])
        }
        try _copyItem(atPath: srcURL.path, toPath: dstURL.path, isURL: true)
    }
    
    open func moveItem(at srcURL: URL, to dstURL: URL) throws {
