map_to_directory_structure

Last updated:

0 purchases

map_to_directory_structure Image
map_to_directory_structure Images
Add to Cart

Description:

map to directory structure

Creates directory structure based on a map. Reverse of directory_structure_map.
Usage #

Use maps to represent a directory.
Use hex strings to represent a file.

import 'package:map_to_directory_structure/map_to_directory_structure.dart';

var map = {
'emptyDir': {},
'root.txt': '6869',
'a': {
'b': {
'c': {'root.txt': '64656570'},
'd': ''
}
}
};
await mapToDirectoryStructure(map, tmpDir);
copied to clipboard
This creates the following directory structure:
├── a
│   └── b
│   ├── c
│   │   └── root.txt
│   └── d
├── emptyDir
└── root.txt
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.