Section: 184.108.40.206 [fs.op.file.size] Status: Resolved Submitter: Gor Nishanov Opened: 2014-05-22 Last modified: 2021-06-06 18:38:24 UTC
View all issues with Resolved status.
On Windows, the
structure, which is the underlying data type for
directory_entry, contains the file size as one of the fields.
Thus efficient enumeration of files and getting their sizes is possible without doing a separate query for the file size.
[17 Jun 2014 Rapperswil LWG will investigate issue at a subsequent meeting.]
[23 Nov 2015 Editorally correct name of data structure mentioned in discussion.]
[Mar 2016 Jacksonville Beman to provide paper about this]
[Apr 2016 Issue updated to address the C++ Working Paper. Previously addressed File System TS]
Previous resolution [SUPERSEDED]
In [fs.class.directory_entry] Class
directory_entryadd the following observer declarations:uintmax_t file_size(); uintmax_t file_size(error_code& ec) noexcept;
directory_entryobservers 220.127.116.11 [fs.dir.entry.obs] add the following:uintmax_t file_size(); uintmax_t file_size(error_code& ec) noexcept;
*thiscontains a cached file size, return it. Otherwise return
Throws: As specified in Error reporting (7).
[2016-08, Beman comments]
This will be resolved by P0317R1, Directory Entry Caching for Filesystem.
Fri AM: Moved to Tentatively Resolved