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

system: is_directory #946

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

perazz
Copy link
Member

@perazz perazz commented Mar 7, 2025

This PR is spun off #904 for clarity.

  • It provides a logical function to evaluate whether a given path is a directory.
  • On Windows, it natively works both with / and \ separators.
  • Relies on C functions, to avoid Fortran pre-processor macros and path swapping, that would be slow.

Some questions to discuss that come to my mind:

  • Should this be part of stdlib_system, stdlib_io, or maybe a submodule(stdlib_system) stdlib_system_filesystem? or else?
  • Should we begin standardizing the C-side names somehow? They use the same global namespace, so we should start being careful imho.

cc: @jvdp1 @jalvesz

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.

1 participant