diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-02-07 10:20:33 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-02-07 10:22:07 +0000 |
commit | 04fa5886f4aa1d9b6f458ea99a33aac8bdc741bd (patch) | |
tree | 230ff826677341388eee0e651b54eb173dbd42dc /share | |
parent | 4433e8f2938878353d84439735bfa170e0ac8083 (diff) | |
download | subplot-04fa5886f4aa1d9b6f458ea99a33aac8bdc741bd.tar.gz |
rust/files: Add bindings for directories
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'share')
-rw-r--r-- | share/rust/lib/files.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/share/rust/lib/files.yaml b/share/rust/lib/files.yaml index 339e7cf..5fa4f45 100644 --- a/share/rust/lib/files.yaml +++ b/share/rust/lib/files.yaml @@ -66,3 +66,24 @@ - then: file {filename} has a very old modification time function: subplotlib::steplibrary::files::mtime_is_ancient + +- given: a directory {path} + function: subplotlib::steplibrary::files::make_directory + +- when: I create directory {path} + function: subplotlib::steplibrary::files::make_directory + +- when: I remove directory {path} + function: subplotlib::steplibrary::files::remove_directory + +- then: directory {path} exists + function: subplotlib::steplibrary::files::path_exists + +- then: directory {path} does not exist + function: subplotlib::steplibrary::files::path_does_not_exist + +- then: directory {path} is empty + function: subplotlib::steplibrary::files::path_is_empty + +- then: directory {path} is not empty + function: subplotlib::steplibrary::files::path_is_not_empty |