@@ -380,73 +380,92 @@ my $perl-files = gather while @stack {
380
380
381
381
= head2 method e
382
382
383
- method e(--> Bool)
383
+ method e(--> Bool:D )
384
384
385
- Returns C < Bool:: True> if the invocant is a valid path that exists.
385
+ Returns C < True > if the invocant is a path that exists.
386
386
387
387
= head2 method d
388
388
389
- method d(--> Bool)
389
+ method d(--> Bool:D )
390
390
391
- Returns C < Bool::True > if the invocant is a path and the directory exists.
391
+ Returns C < True > if the invocant is a path that exists and is a directory.
392
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
393
+ path points to a non-existent object.
392
394
393
395
= head2 method f
394
396
395
- method f(--> Bool)
397
+ method f(--> Bool:D )
396
398
397
- Returns C < Bool::True > if the invocant is a path and the file exists.
399
+ Returns C < True > if the invocant is a path that exists and is a file.
400
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
401
+ path points to a non-existent object.
398
402
399
403
= head2 method s
400
404
401
- method s(--> Int)
405
+ method s(--> Int:D )
402
406
403
- If the path is valid and points to a regular file the size of that file
404
- in bytes is returned. If the path is valid but pointing to something which
405
- is not a file, e.g. a directory, a L < X::IO::NotAFile > exception is thrown.
406
- An exception is also thrown if the path is invalid, in that case the exception
407
- type is L < X::IO::DoesNotExist > .
407
+ Returns the filesize in bytes. May be called on paths that are directories, in
408
+ which case the reported size is dependant on the operating system.
409
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
410
+ path points to a non-existent object.
408
411
409
412
= head2 method l
410
413
411
- method l(--> Bool)
414
+ method l(--> Bool:D )
412
415
413
- Returns C < Bool::True > if the invocant is a path and a symlink.
416
+ Returns C < True > if the invocant is a path that exists and is a symlink.
417
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
418
+ path points to a non-existent object.
414
419
415
420
= head2 method r
416
421
417
- method r(--> Bool)
422
+ method r(--> Bool:D )
418
423
419
- Returns C < Bool::True > if the invocant is a path and accessible.
424
+ Returns C < True > if the invocant is a path that exists and is accessible.
425
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
426
+ path points to a non-existent object.
420
427
421
428
= head2 method w
422
429
423
- method w(--> Bool)
430
+ method w(--> Bool:D )
424
431
425
- Returns C < Bool::True > if the invocant is a path and writable.
432
+ Returns C < True > if the invocant is a path that exists and is writable.
433
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
434
+ path points to a non-existent object.
426
435
427
436
= head2 method rw
428
437
429
- method rw(--> Bool)
438
+ method rw(--> Bool:D )
430
439
431
- Returns C < Bool::True > if the invocant is a path, readable and writable.
440
+ Returns C < True > if the invocant is a path that exists and is readable and
441
+ writable. The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist >
442
+ if the path points to a non-existent object.
432
443
433
444
= head2 method x
434
445
435
- method x(--> Bool)
446
+ method x(--> Bool:D )
436
447
437
- Returns C < Bool::True > if the invocant is a path and executable.
448
+ Returns C < True > if the invocant is a path that exists and is executable.
449
+ The method will L « C < fail > |/routine/fail» with C < X::IO::DoesNotExist > if the
450
+ path points to a non-existent object.
438
451
439
452
= head2 method rwx
440
453
441
- method rwx(--> Bool)
454
+ method rwx(--> Bool:D )
442
455
443
- Returns C < Bool::True > if the invocant is a path, executable, readable and writable.
456
+ Returns C < True > if the invocant is a path that exists and is executable,
457
+ readable, and writable. The method will L « C < fail > |/routine/fail» with
458
+ C < X::IO::DoesNotExist > if the path points to a non-existent object.
444
459
445
460
= head2 method z
446
461
447
- method z(--> Bool)
462
+ method z(--> Bool:D )
448
463
449
- Returns C < Bool::True > if the invocant is a path and the size is 0.
464
+ Returns C < True > if the invocant is a path that exists and has size of C < 0 > .
465
+ May be called on paths that are directories, in
466
+ which case the reported filesize (and thus the result of this method)
467
+ is dependant on the operating system. The method will L « C < fail > |/routine/fail»
468
+ with C < X::IO::DoesNotExist > if the path points to a non-existent object.
450
469
451
470
= head2 routine slurp
452
471
0 commit comments