Skip to content

Repository files navigation

python-immutable-fs-trees

github action status

Install

pip install hexlet-immutable-fs-trees

Usage example

import hexlet.fs as fs
fs.is_file(fs.mkfile('config'))  # True
fs.is_directory(fs.mkdir('etc'))  # True
tree = fs.mkdir('etc', [fs.mkfile('config'), fs.mkfile('hosts')])
children = fs.get_children(tree)
fs.get_name(children[0])  # 'config'
list(map(lambda item: fs.get_name(item), children))  # ['config', 'hosts']

Hexlet Ltd. logo

This repository is created and maintained by the team and the community of Hexlet, an educational project. Read more about Hexlet.

About

No description, website, or topics provided.

Resources

Stars

7 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages