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

Add some API design notes and API skeletons for Dir module #2973

Merged
merged 4 commits into from
Feb 19, 2025
Merged

Conversation

harendra-kumar
Copy link
Member

No description provided.

@adithyaov adithyaov force-pushed the dir-API branch 3 times, most recently from 50d4697 to 3aedcd0 Compare February 18, 2025 13:45
@adithyaov adithyaov force-pushed the dir-API branch 2 times, most recently from 8643dbc to 0d2041f Compare February 18, 2025 16:38
foreign import ccall unsafe "stat.h lstat"
c_lstat :: CString -> Ptr CStat -> IO CInt

foreign import ccall unsafe "stat.h stat"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wondering if this should be capi instead?

- Use dummy ReadOptions in Windows
- Use hsc constructs directly instead of using C FFI
- Update the tests and benchmarks
- Add symlink related tests

-- | Checks if dname is a directory and additionaly returns if dname is a meta
-- directory.
{-# INLINE checkDirStatus #-}
checkDirStatus
:: PosixPath -> Ptr CChar -> #{type unsigned char} -> IO (Bool, Bool)
:: ReadOptions
-> PosixPath -> Ptr CChar -> #{type unsigned char} -> IO GStatRes
#ifdef FORCE_LSTAT_READDIR
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this flag now.

@adithyaov adithyaov merged commit 4e2fccb into master Feb 19, 2025
14 of 21 checks passed
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.

2 participants