dir_utils

Creator: coderz1093

Last updated:

0 purchases

dir_utils Image
dir_utils Images

Languages

Categories

Add to Cart

Description:

dir utils

Makes directory traversal easier. No need to worry about path concatenation and stuff.
Getting started #
Add dir_utils as a dependency in the pubspec.yaml file. Or run dart pub add dir_utils/flutter pub add dir_utils
Usage #
import the package
import 'package:dir_utils/dir_utils.dart';
copied to clipboard
Go deep in dirs
final Directory myDir = Directory.current
.dir('very')
.dir('deep')
.dir('nested')
.dir('dir');
copied to clipboard
Get file of a Directory
final File myFile = Directory.current.file('myFile.json');
copied to clipboard
Get the files of a Directory
final List<File> myFiles = Directory.current.getFiles().toList();
copied to clipboard
Get the name of a FileSystemEntity
final String currentDirName = Directory.current.name;
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.