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

some directory_entry overloads for some status query functions #55

Closed
wants to merge 1 commit into
base: develop
from

Conversation

Projects
None yet
2 participants
@emmett-b
Copy link
Contributor

emmett-b commented Oct 18, 2017

Without these functions, calling (for example) is_directory with a directory_entry results in:

  • a conversion to path using operator const boost::filesystem::path&(),
  • then a call to is_directory(const path& p) which recomputes the status with detail::status(p).

These functions avoid a costly recomputation of the status if one calls is_directory(e) instead of is_directory(e.status)

@emmett-b emmett-b changed the title added directory_entry overloads for some status query functions some directory_entry overloads for some status query functions Oct 19, 2017

@Lastique

This comment has been minimized.

Copy link
Member

Lastique commented Nov 24, 2018

Thanks. Committed 4731ce7 with some modifications.

@Lastique Lastique closed this Nov 24, 2018

@emmett-b

This comment has been minimized.

Copy link
Contributor Author

emmett-b commented Nov 24, 2018

Great! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.