map_to_directory_structure 1.0.2 copy "map_to_directory_structure: ^1.0.2" to clipboard
map_to_directory_structure: ^1.0.2 copied to clipboard

Creates directory structure based on a map.

pub package Build Status

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

This creates the following directory structure:

├── a
│   └── b
│       ├── c
│       │   └── root.txt
│       └── d
├── emptyDir
└── root.txt
0
likes
120
pub points
0%
popularity

Publisher

verified publisherflutter-cavalry.com

Creates directory structure based on a map.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

convert, path

More

Packages that depend on map_to_directory_structure