You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The current implementation of the get_all_folders function potentially leads to inconsistent behavior due to differing path separators on different operating systems. To ensure consistent results and portability, it's important to handle path separators in a platform-independent manner.
Proposed Solution:
Refactor the code to utilize Rust's built-in path handling capabilities using the std::path::Path and std::path::PathBuf types. This will allow the function to automatically manage path separators according to the operating system, resulting in more predictable and reliable behavior.
Description:
The current implementation of the get_all_folders function potentially leads to inconsistent behavior due to differing path separators on different operating systems. To ensure consistent results and portability, it's important to handle path separators in a platform-independent manner.
Proposed Solution:
Refactor the code to utilize Rust's built-in path handling capabilities using the std::path::Path and std::path::PathBuf types. This will allow the function to automatically manage path separators according to the operating system, resulting in more predictable and reliable behavior.
I opened a pull request #59
The text was updated successfully, but these errors were encountered: