1.8 KiB
1.8 KiB
[fs.op.is.empty]
31 Input/output library [input.output]
31.12 File systems [filesystems]
31.12.13 Filesystem operation functions [fs.op.funcs]
31.12.13.20 Is empty [fs.op.is.empty]
bool filesystem::is_empty(const path& p); bool filesystem::is_empty(const path& p, error_code& ec);
Effects:
-
Determine file_status s, as if by status(p) or status(p, ec), respectively.
-
For the signature with argument ec, return false if an error occurred.
-
Otherwise, if is_directory(s):
-
Otherwise:
Throws: As specified in [fs.err.report].