Skip to content

atweiden/file-presence

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

File::Presence

Check that a file or directory exists and is readable.

Synopsis

use File::Presence;

my $config-dir = '~/.config';
my $config-file = 'bzzt';

say File::Presence.exists-readable-dir($config-dir)
    ?? 'readable dir exists'
    !! 'readable dir dne';

say File::Presence.exists-readable-file($config-file)
    ?? 'readable file exists'
    !! 'readable file dne';

say File::Presence.show($config-dir); # { :e, :d, :!f, :r, :w, :x }
say File::Presence.show($config-file); # { :e, :!d, :f, :r, :w, :!x }

Installation

Dependencies

  • Raku

Licensing

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

About

Check that a file / directory exists and is readable

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages