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

File info functions #37

Merged
merged 7 commits into from
Aug 28, 2024
Merged

Conversation

joshi-monster
Copy link
Contributor

fix #35

I haven't added helper functions for get_file_type, get_permissions etc here, this might be also something to consider. Also some FFI code for is_file, is_directory, etc. could now possibly be removed and re-implemented using the new helpers.

I also just collapsed CharacterDevice etc. into an Other type since those would need special handling on different operating systems, and I think come up very rarely.

octal_to_file_permissions might also be a function that is worth exposing, maybe.

~yoshi 💜

@bcpeinhardt bcpeinhardt mentioned this pull request Aug 28, 2024
@bcpeinhardt bcpeinhardt merged commit 28e8b6a into bcpeinhardt:main Aug 28, 2024
1 check passed
@joshi-monster joshi-monster deleted the file-info-functions branch August 28, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Add functions to extract the type/permissions from an existing FileInfo
2 participants