About std::filesystem::is_regular_file(path)
, cppreference.com says:
Checks if the given file status or path corresponds to a regular file […] Equivalent to
s.type() == file_type::regular
.
For example, in the Linux kernel, file types are declared in the header file sys/stat.h
. The type name and symbolic name for each Linux file type is listed below:
- Socket (S_IFSOCK)
- Symbolic link (S_IFLNK)
- Regular File (S_IFREG)
- Block special file (S_IFBLK)
- Directory (S_IFDIR)
- Character device (S_IFCHR)
- FIFO (named pipe) (S_IFIFO)
What is the thing that this function checks on Windows?