Expand description
Library of steps for handling files in the data dir.
The files step library is intended to help with standard operations which people might need when writing subplot scenarios which use embedded files.
Re-exports§
Modules§
- create_
from_ embedded - Create a file on disk from an embedded file
- create_
from_ embedded_ with_ other_ name - Create a file on disk from an embedded file with a given name
- create_
from_ text - Create a file with some given text as its content
- file_
contains - Check if a file contains a given sequence of characters
- file_
does_ not_ exist - Check for absence of a file
- file_
doesnt_ contain - Check if a file lacks a given sequence of characters
- file_
exists - Check for a file
- file_
match - Check if two files match
- file_
matches_ regex - Check if a file’s content matches the given regular expression
- has_
different_ metadata - Check that a given file’s metadata has changed since we remembered it
- has_
remembered_ metadata - Check if a given file’s metadata matches our memory of it
- make_
directory - Make a directory
- mtime_
is_ ancient - Check if the given file is very old
- mtime_
is_ recent - Check if the given file has been modified “recently”
- only_
these_ exist - Check if a set of files are the only files in the datadir
- path_
does_ not_ exist - Check that a directory does not exist
- path_
exists - Check that a directory exists
- path_
is_ empty - Check that a directory exists and is empty
- path_
is_ not_ empty - Check that a directory exists and is not empty
- remember_
metadata - Examine the given file and remember its metadata for later
- remove_
directory - Remove a directory
- touch
- Touch a given file
- touch_
with_ timestamp - Touch a file to have a specific timestamp as its modified time
Structs§
- Files
- Context data for the
files
step library