      - returns: FBFile object.
      */
     init(filePath: NSURL) {
-        var displayName = filePath.lastPathComponent
         self.filePath = filePath
         let isDirectory = checkDirectory(filePath)
         self.isDirectory = isDirectory

                self.type = .Default
            }
        }
        if let displayName = displayName {
            self.displayName = displayName
        }
        else {
            self.displayName = String()
        }
    }
}


        }
        else {
            self.fileAttributes = getFileAttributes(self.filePath)
            self.fileExtension = filePath.pathExtension
            if let fileExtension = fileExtension {
                self.type = FBFileType(rawValue: fileExtension) ?? .Default
            }
