- type FileContentType = String
- type FileIconPixbufDatabase = Map FileContentType Pixbuf
- fileDoesExist :: ByteString -> Bool
- directoryDoesExist :: ByteString -> Bool
- isDirectory :: ByteString -> Bool
- directoryGetFiles :: ByteString -> IO [ByteString]
- directoryGetFilesRecursive :: ByteString -> IO [ByteString]
- fileInfoGetNameWithType :: FileInfoClass info => info -> ByteString
- fileInfoGetDisplayNameWithType :: FileInfoClass info => info -> String
- filepathGetDisplayName :: ByteString -> FilePath
- directoryGetFileInfos :: ByteString -> IO [FileInfo]
- getDirectoryPath :: String -> IO ByteString
- fileEnumeratorGetFileInfos :: FileEnumeratorClass enumerator => enumerator -> IO [FileInfo]
- compareFileWithType :: (FilePath, FileType) -> (FilePath, FileType) -> Ordering
- fileInfoGetDescription :: FileInfoClass info => info -> String
- getAllExecuteFiles :: IO [ByteString]
- launchCommandInTerminal :: String -> IO ()
- fileInfoGetIconPixbuf :: FileInfoClass info => info -> IO Pixbuf
- getIconPixbuf :: IconClass icon => icon -> IO Pixbuf
- updateFileIconPixbufDatabase :: FileInfoClass info => info -> FileIconPixbufDatabase -> IO FileIconPixbufDatabase
Documentation
type FileContentType = StringSource
fileDoesExist :: ByteString -> BoolSource
Check file is exist.
directoryDoesExist :: ByteString -> BoolSource
Check directory is exist.
isDirectory :: ByteString -> BoolSource
Check file path whether directory.
directoryGetFiles :: ByteString -> IO [ByteString]Source
Get files from given directory.
directoryGetFilesRecursive :: ByteString -> IO [ByteString]Source
Get files recursive.
fileInfoGetNameWithType :: FileInfoClass info => info -> ByteStringSource
Get info name with type.
fileInfoGetDisplayNameWithType :: FileInfoClass info => info -> StringSource
Get info name with type.
filepathGetDisplayName :: ByteString -> FilePathSource
Get display name for given filepath.
directoryGetFileInfos :: ByteString -> IO [FileInfo]Source
Get FileInfo list from given directory.
getDirectoryPath :: String -> IO ByteStringSource
We need use absolute *byte string* to identifier a filepath in filesystem.
So we need 'directory name' and 'file name' are valid 'byte string', no encoding information.
'Byte string file name' can get by fileEnumeratorNextFile
and fileInfoGetName
.
'Byte string directory name ' can get by fileEnumerateChildren
and fileEnumeratorGetContainer
So this function is convert user input directory name (UTF8) to 'byte string'.
fileEnumeratorGetFileInfos :: FileEnumeratorClass enumerator => enumerator -> IO [FileInfo]Source
Get FileInfo list from given FileEnumerator.
compareFileWithType :: (FilePath, FileType) -> (FilePath, FileType) -> OrderingSource
Compare file name with file type. Directory first, then sort file. All sort is alpha sort.
fileInfoGetDescription :: FileInfoClass info => info -> StringSource
Get description for file info.
getAllExecuteFiles :: IO [ByteString]Source
Get all execute files.
launchCommandInTerminal :: String -> IO ()Source
Launch command in terminal.
fileInfoGetIconPixbuf :: FileInfoClass info => info -> IO PixbufSource
Get icon pixbuf.
getIconPixbuf :: IconClass icon => icon -> IO PixbufSource
Get icon pixbuf.
updateFileIconPixbufDatabase :: FileInfoClass info => info -> FileIconPixbufDatabase -> IO FileIconPixbufDatabaseSource
Update file icon database.