Front page | perl.perl6.users |
Postings from October 2022
Re: folder size
Thread Previous
|
Thread Next
From:
ToddAndMargo via perl6-users
Date:
October 24, 2022 17:21
Subject:
Re: folder size
Message ID:
4fa4a46f-27a1-a656-eb9b-26db8d7861f5@zoho.com
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 ) {
Thread Previous
|
Thread Next