-
Notifications
You must be signed in to change notification settings - Fork 308
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
add file.stat() #81
add file.stat() #81
Conversation
quick attempt at adding #80, please let me know if you need any changes or a different approach. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!! Left some comments. Please update documentation too!
let me know how this looks, if good I'll open a followup for readall |
Yeah, this is good!!
|
Addressed the tests and docs - prefer other functions in a separate PR |
- `mtime`: time the file was last modified | ||
- `size`: file size in bytes | ||
- `mode`: file permissions as in int, comparable to octal permissions | ||
- `directory`: boolean indicating if the file is a directory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasnt sure how you want these as the other examples only show methods so just tried this to see
No description provided.