REGISTER NOW: Brightway Spring School! 🇨🇦 Québec City (Canada) 🗓️ 20.-24. May 2024

bw2data.filesystem#

Module Contents#

Functions#

check_dir(directory)

Returns True if given path is a directory and writeable, False otherwise.

create_dir(dirpath)

Create directory tree to dirpath; ignore if already exists

md5(filepath[, blocksize])

Generate MD5 hash for file at filepath

Attributes#

re_slugify

bw2data.filesystem.check_dir(directory)[source]#

Returns True if given path is a directory and writeable, False otherwise.

bw2data.filesystem.create_dir(dirpath)[source]#

Create directory tree to dirpath; ignore if already exists

bw2data.filesystem.md5(filepath, blocksize=65536)[source]#

Generate MD5 hash for file at filepath

bw2data.filesystem.re_slugify[source]#