This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of Resolved status.
Section: 188.8.131.52 [fs.op.file.size] Status: Resolved Submitter: Gor Nishanov Opened: 2014-05-22 Last modified: 2021-06-06
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 184.108.40.206 [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