An assertion lib for the to assert file system stuff.
basename(dir)
. assert basename of a path.dirname(dir)
. assert dirname of a path.extname(file)
. assert file extensionpath
. assert path existsfile
. assert it a filedir
. assert it a dirmount
. assert it a mount pointabsolute_path
. assert it an absolute pathreadable
. assert readable.writable
. assert writable.executable
assert executable
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