Skip to content

nayeemtby/dir_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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';

Go deep in dirs

final Directory myDir = Directory.current
      .dir('very')
      .dir('deep')
      .dir('nested')
      .dir('dir');

Get file of a Directory

final File myFile = Directory.current.file('myFile.json');

Get the files of a Directory

final List<File> myFiles = Directory.current.getFiles().toList();

Get the name of a FileSystemEntity

final String currentDirName = Directory.current.name;

About

Dart package to provide handy directory methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages