1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * @brief Implementation for FileFlags routines
10 #include "FileFlags.h"
11 #include "UnicodeString.h"
15 * @brief Convert file flags to string presentation.
16 * This function converts file flags to a string presentation that can be
18 * @return File flags as a string.
20 String FileFlags::ToString() const
22 tchar_t sflags[5], *p = sflags;
23 if (attributes & FILE_ATTRIBUTE_READONLY)
25 if (attributes & FILE_ATTRIBUTE_HIDDEN)
27 if (attributes & FILE_ATTRIBUTE_SYSTEM)
29 if (attributes & FILE_ATTRIBUTE_ARCHIVE)
31 return String{ sflags, p };