Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IO::Path.s returns the size, not Bool #1054

Closed
AlexDaniel opened this issue Dec 15, 2016 · 0 comments
Closed

IO::Path.s returns the size, not Bool #1054

AlexDaniel opened this issue Dec 15, 2016 · 0 comments
Labels
docs Documentation issue (primary issue type) good first issue If you want to dive in, this would be a good place to start

Comments

@AlexDaniel
Copy link
Member

AlexDaniel commented Dec 15, 2016

https://docs.perl6.org/type/IO$COLON$COLONPath#method_s

“Returns Bool::True if the invocant is a path and the size is bigger then 0.”

Code:

say file.p6.IO.s

Result:

935

Also:

<ugexe> at the very least s/is a path/is a regular file/
@AlexDaniel AlexDaniel added docs Documentation issue (primary issue type) LHF labels Dec 15, 2016
@coke coke added good first issue If you want to dive in, this would be a good place to start and removed LHF labels Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type) good first issue If you want to dive in, this would be a good place to start
Projects
None yet
Development

No branches or pull requests

2 participants