diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-02-25 08:31:29 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-02-25 08:31:29 +0000 |
commit | c3a17851fd70a2462511ec6942627d0720cf6c5a (patch) | |
tree | 880bf662661864a1558548c8375bf6bb617b43f4 /share/python/lib/files.yaml | |
parent | b5b2350106b5f352fe52cf745e693f2eda008758 (diff) | |
parent | 736daa8bbcd56eb80c0f18cf8e2a2f78d6432e99 (diff) | |
download | subplot-c3a17851fd70a2462511ec6942627d0720cf6c5a.tar.gz |
Merge branch 'files' into 'main'
feat: directory handling steps for Python lib/files
Closes #157
See merge request larswirzenius/subplot!140
Diffstat (limited to 'share/python/lib/files.yaml')
-rw-r--r-- | share/python/lib/files.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/share/python/lib/files.yaml b/share/python/lib/files.yaml index be69920..f18b8cd 100644 --- a/share/python/lib/files.yaml +++ b/share/python/lib/files.yaml @@ -60,3 +60,24 @@ - then: file {filename} has a very old modification time function: files_mtime_is_ancient + +- given: a directory {path} + function: files_make_directory + +- when: I create directory {path} + function: files_make_directory + +- when: I remove directory {path} + function: files_remove_directory + +- then: directory {path} exists + function: files_directory_exists + +- then: directory {path} does not exist + function: files_directory_does_not_exist + +- then: directory {path} is empty + function: files_directory_is_empty + +- then: directory {path} is not empty + function: files_directory_is_not_empty |