Directory Management: Enhance the error handling in the async implementation to ensure it throws the original error if a stat operation fails, aligning it with the sync version for consistency.
Fixes
Fix inconsistency between async and sync implementations by ensuring that the original error is thrown when a stat operation fails in the async method.