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


import the package

import 'package:dir_utils/dir_utils.dart';

Go deep in dirs

final Directory myDir = Directory.current

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