PodDirectoryService class

Service for listing and managing POD directories.

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

clearCache() → void
Clear all cached data.
createDirectory(String relativePath) Future<bool>
Create a directory in the POD.
delete(String relativePath) Future<bool>
Delete a file or directory from the POD.
exists(String relativePath) Future<bool>
Check if a path exists in the POD.
invalidateCache(String path) → void
Clear cache for a specific path and its parent.
listDirectory(String relativePath, {bool forceRefresh = false}) Future<List<PodFileItem>>
List contents of a directory in the POD.
notifyChange() → void
Notify listeners that the file system has changed. This only notifies UI components to refresh their views. Use invalidateCache() to clear specific cache entries before calling this.
preload() Future<void>
Preload common directories into cache. Call this after login to make file browser feel instant.
readFile(String relativePath) Future<String?>
Read file content from the POD.
removeFromCache(String itemPath) → void
Remove an item from the cache (used after deletion).