FileOperations class
A utility class for performing file system operations in the POD.
This class provides static methods for:
- Retrieving and processing files from directories.
- Counting files in directories.
- Managing file metadata and validation.
All operations are performed asynchronously and handle errors gracefully.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getDirectoryCounts(
String currentPath, List< String> directories) → Future<Map< String, int> > - Gets the file count for each subdirectory.
-
getDirectoryFileCount(
String dirPath) → Future< int> - Counts the number of files in a directory.
-
getFiles(
String currentPath, BuildContext context) → Future< List< FileItem> > - Retrieves and processes files from the specified directory.