13 #ifndef __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__ 14 #define __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__ 28 const DWORD attributes = ::GetFileAttributesW(path.data());
29 if (attributes == INVALID_FILE_ATTRIBUTES) {
31 "Failed to get attributes for file '" +
stringify(path) +
"'");
39 #endif // __STOUT_INTERNAL_WINDOWS_ATTRIBUTES_HPP__
Try< DWORD > get_file_attributes(const std::wstring &path)
Definition: attributes.hpp:27
Definition: error.hpp:108
Definition: attributes.hpp:24
std::string stringify(int flags)