149 _M_path.replace_filename(__p);
156 _M_path.replace_filename(__p);
162 { _M_type = symlink_status().type(); }
166 { _M_type = symlink_status(
__ec).type(); }
174 {
return filesystem::exists(
file_status{_M_file_type()}); }
181 is_block_file()
const
182 {
return _M_file_type() == file_type::block; }
186 {
return _M_file_type(
__ec) == file_type::block; }
189 is_character_file()
const
190 {
return _M_file_type() == file_type::character; }
194 {
return _M_file_type(
__ec) == file_type::character; }
198 {
return _M_file_type() == file_type::directory; }
202 {
return _M_file_type(
__ec) == file_type::directory; }
206 {
return _M_file_type() == file_type::fifo; }
210 {
return _M_file_type(
__ec) == file_type::fifo; }
214 {
return filesystem::is_other(
file_status{_M_file_type()}); }
221 is_regular_file()
const
222 {
return _M_file_type() == file_type::regular; }
226 {
return _M_file_type(
__ec) == file_type::regular; }
230 {
return _M_file_type() == file_type::socket; }
234 {
return _M_file_type(
__ec) == file_type::socket; }
239 if (_M_type != file_type::none)
240 return _M_type == file_type::symlink;
241 return symlink_status().type() == file_type::symlink;
247 if (_M_type != file_type::none)
248 return _M_type == file_type::symlink;
249 return symlink_status(
__ec).type() == file_type::symlink;
254 {
return filesystem::file_size(_M_path); }
258 {
return filesystem::file_size(_M_path,
__ec); }
261 hard_link_count()
const
262 {
return filesystem::hard_link_count(_M_path); }
266 {
return filesystem::hard_link_count(_M_path,
__ec); }
269 last_write_time()
const
270 {
return filesystem::last_write_time(_M_path); }
275 {
return filesystem::last_write_time(_M_path,
__ec); }
279 {
return filesystem::status(_M_path); }
283 {
return filesystem::status(_M_path,
__ec); }
286 symlink_status()
const
287 {
return filesystem::symlink_status(_M_path); }
291 {
return filesystem::symlink_status(_M_path,
__ec); }
295 {
return _M_path ==
__rhs._M_path; }
297#if __cpp_lib_three_way_comparison
304 {
return _M_path !=
__rhs._M_path; }
308 {
return _M_path <
__rhs._M_path; }
312 {
return _M_path <=
__rhs._M_path; }
316 {
return _M_path >
__rhs._M_path; }
320 {
return _M_path >=
__rhs._M_path; }
330 template<
typename _CharT,
typename _Traits>
334 {
return __os << __d.path(); }
337 : _M_path(__p), _M_type(__t)
344 if (_M_type != file_type::none && _M_type != file_type::symlink)
346 return status().type();
353 if (_M_type != file_type::none && _M_type != file_type::symlink)
358 return status(
__ec).type();