FileManager class

Constructors

FileManager({required Directory root, FileFilter? filter})

Properties

filter FileFilter?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
root Directory
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dirsTree({List<String>? excludedPaths = const ["/storage/emulated/0/Android"], bool followLinks = false, bool excludeHidden = false, FlutterFileUtilsSorting? sortedBy}) Future<List<Directory>>
Return list tree of directories. You may exclude some directories from the list.
filesTree({List<String>? extensions, List<String>? excludedPaths, dynamic excludeHidden = false, bool reversed = false, FlutterFileUtilsSorting? sortedBy}) Future<List<File>>
Return tree List of files starting from the root of type File
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recentFilesAndDirs(int count, {List<String>? extensions, List<String>? excludedPaths, dynamic excludeHidden = false, FlutterFileUtilsSorting? sortedBy, bool reversed = false}) Future<List<File>>
  • This function returns a List of int howMany of type File of recently created files.
  • excludeHidded if true hidden files will not be returned
  • sortedBy: Sorting
  • bool reversed: in case parameter sortedBy is used
  • Returns a list of found items of Directory or File type or empty list. You may supply Regular Expression e.g: "*.png", instead of string.
    searchFuture(dynamic keyword, {List<String>? excludedPaths, dynamic filesOnly = false, dynamic dirsOnly = false, required List<String> extensions, bool reversed = false, FlutterFileUtilsSorting? sortedBy}) Future<List>
    Returns a list of found items of Directory or File type or empty list. You may supply Regular Expression e.g: "*.png", instead of string.
    toString() String
    A string representation of this object.
    inherited
    walk({dynamic followLinks = false}) Stream<FileSystemEntity>
    Return tree List of files starting from the root of type File.

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited