File access functions
- Working with sub-paths
- Checking symbolic links
compser require phore/filesystem
echo phore_uri("/tmp/some.file")->withDirName();
will result in
/tmp
echo phore_uri("/tmp")->withSubPath("./some/other/file")
/tmp/some/other/file
phore_uri("/tmp")->assertIsFile()->assertIsWritable();
phore_uri("/tmp/somefile.yml")->assertFile()->get_yaml();
Will be unlinked when object destructs.
$file = new PhoreTempFile();