file_ext library

FileSystem extensions

Extensions

FileSystemExt on FileSystem
A helper extension for the FileSystem API
MemoryFileSystemExt on MemoryFileSystem
A helper extension for the MemoryFileSystem API Useful mostly for unit tests
PathExt on Context
A helper extension for Path API

Typedefs

FileSystemEntityExceptionHandler = Future<VisitResult> Function(FileSystem fileSystem, FileSystemEntity? entity, FileStat? stat, Exception exception, StackTrace stackTrace)
A user-defined error handler (non-blocking)

Returns true to continue the loop or false to rethrow
FileSystemEntityExceptionHandlerSync = VisitResult Function(FileSystem fileSystem, FileSystemEntity? entity, FileStat? stat, Exception exception, StackTrace stackTrace)
A user-defined error handler (blocking)

Returns true to continue the loop or false to rethrow
FileSystemEntityHandler = Future<VisitResult> Function(FileSystem fileSystem, FileSystemEntity? entity, FileStat? stat)
A type for async callback function used by FileSystemExt.list(...)
or FileSystemExt.listSync(...) for every found filesystem entity

Returns true to continue the loop or false to stop
FileSystemEntityHandlerSync = VisitResult Function(FileSystem fileSystem, FileSystemEntity? entity, FileStat? stat)
A type for sync callback function used by FileSystemExt.listSync(...) for every found filesystem entity

Returns true to continue the loop or false to stop
MemoryFileSystemHandler = void Function(MemoryFileSystem fs)
A callback function defintion