You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
allow storage permission from app setting manually or you may use any package such as [`permission_handler`](https://pub.dev/packages/permission_handler).
38
+
13
39
Add the following line to `pubspec.yaml`:
14
40
15
41
```yaml
@@ -85,10 +111,7 @@ FileManager(
85
111
|--------------|-----------------|
86
112
|`isFile`| check weather FileSystemEntity is File. |
87
113
|`isDirectory`| check weather FileSystemEntity is Directory. |
88
-
| `basename` | Get the basename of Directory or File. Provide `File`, `Directory` or `FileSystemEntity` and returns the name as a `String`. ie
89
-
```dart
90
-
controller.dirName(dir);
91
-
```
114
+
| `basename` | Get the basename of Directory or File. Provide `File`, `Directory` or `FileSystemEntity` and returns the name as a `String`. If you want to hide the extension of a file, you may use optional parameter `showFileExtension`. ie ```controller.dirName(dir, true)```
92
115
|
93
116
|`formatBytes`| Convert bytes to human readable size.[getCurrentDirectory]. |
94
117
|`setCurrentPath`| Set current directory path by providing `String` of path, similar to [openDirectory]. `List<FileSystemEntity>.`|
0 commit comments