file system assertion plugin for `the`
Project description
python file system better assertion
An assertion lib for the to assert file system stuff.
API
basename(dir). assert basename of a path.
dirname(dir). assert dirname of a path.
extname(file). assert file extension
path. assert path exists
file. assert it a file
dir. assert it a dir
mount. assert it a mount point
absolute_path. assert it an absolute path
readable. assert readable.
writable. assert writable.
executable assert executable
Usage:
from the import the
import thefs
the.use(thefs)
the("/a/b/c.md").should.have.basename("c.md")
the("/a/b/c.md").should.have.dirname("/a/b")
the("/a/b/c.md").should.have.extname("/a/b")
the("/a/b/c.md").should.be.a.path
the("/a/b/c.md").should.be.a.file
the("/a/b/c.md").should.be.a.dir
the("/a/b/c.md").should.be.a.link
the("/a/b/c.md").should.be.a.mount
the("/a/b/c.md").should.be.an.absolute_path
the("/a/b/c.md").should.be.readable
the("/a/b/c.md").should.be.writable
the("/a/b/c.md").should.be.executable
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thefs-0.0.1.tar.gz
(2.2 kB
view details)
File details
Details for the file thefs-0.0.1.tar.gz.
File metadata
- Download URL: thefs-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b76d737d7bd0a61db3158381e50c6ed190c0f74c48fce4d2b54c4b98f75b14d
|
|
| MD5 |
259b9b6ff739ec919e510c20e33aeb71
|
|
| BLAKE2b-256 |
ace25d1144dbf264d3e4f2b26a7b0d99223e08bcf9b52d450d1b901190f3e739
|