summaryrefslogtreecommitdiff
path: root/share/python/lib/files.md
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2021-02-25 08:31:29 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2021-02-25 08:31:29 +0000
commitc3a17851fd70a2462511ec6942627d0720cf6c5a (patch)
tree880bf662661864a1558548c8375bf6bb617b43f4 /share/python/lib/files.md
parentb5b2350106b5f352fe52cf745e693f2eda008758 (diff)
parent736daa8bbcd56eb80c0f18cf8e2a2f78d6432e99 (diff)
downloadsubplot-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.md')
-rw-r--r--share/python/lib/files.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/share/python/lib/files.md b/share/python/lib/files.md
index 68ef1ac..823c760 100644
--- a/share/python/lib/files.md
+++ b/share/python/lib/files.md
@@ -70,6 +70,29 @@ and file hello.txt matches regex "hello, .*"
and file hello.txt matches regex /hello, .*/
~~~
+# Directories
+
+There are also a large number of directory based steps and some directory
+based behaviour available in creating files which are available in the files
+library.
+
+```scenario
+given a directory first
+then directory first exists
+and directory first is empty
+and directory second does not exist
+when I remove directory first
+then directory first does not exist
+when I create directory second
+then directory second exists
+and directory second is empty
+given file second/third/hello.txt from hello.txt
+then directory second is not empty
+and directory second/third exists
+and directory second/third is not empty
+when I remove directory second
+then directory second does not exist
+```
---
title: Acceptance criteria for the files Subplot library