On 10/24/22 10:12, ToddAndMargo via perl6-users wrote:
On 10/24/22 09:14, Parrot Raiser wrote:
This https://raku.land/zef:lizmat/path-utils might be what you're
seeking. (So new the electrons have barely settled into their new
orbits.)
Not for this instance, but I can see where this will
be really valuable in the future! Thank you!
I basically just wrote a bunch of subs so I
could address them in common language. So far
they have served me.
sub DirectoryExists( Str $DirPath --> Bool ) { return
"$DirPath".IO.d.Bool; } # $Full DirPath format is `H:\MyDocsBackup`
sub DriveExists( Str $DriveLetter --> Bool ) { return
"$DriveLetter".IO.e.Bool; } # $Drive Letter format is `A:\`
sub Exists( Str $Path --> Bool ) { return
"$Path".IO.e.Bool; } # file, directory, drive
sub FileExists( Str $FilePath --> Bool ) { return
"$FilePath".IO.f.Bool; } # $File Path format is `H:\IAmBackup`
sub FolderSize( Str $FolderPath ) {