Lines Matching refs:fs
38 namespace fs = std::filesystem;
48 static constexpr const fs::perms kFordbiddenFilePermissions =
49 fs::perms::owner_exec | fs::perms::group_exec | fs::perms::others_exec;
93 Status IsRegularFile(const fs::directory_entry& entry) { in IsRegularFile()
94 const fs::path& path = entry.path(); in IsRegularFile()
96 fs::file_status status = entry.status(ec); in IsRegularFile()
101 if (!fs::is_regular_file(status)) { in IsRegularFile()
104 if ((status.permissions() & kFordbiddenFilePermissions) != fs::perms::none) { in IsRegularFile()
111 Status IsHashTxt(const fs::directory_entry& entry) { in IsHashTxt()
123 Status IsWhitelistedTopLevelEntry(const fs::directory_entry& entry) { in IsWhitelistedTopLevelEntry()
126 const fs::path& path = entry.path(); in IsWhitelistedTopLevelEntry()
128 bool is_empty = fs::is_empty(path, ec); in IsWhitelistedTopLevelEntry()
139 auto iter = fs::directory_iterator(path, ec); in IsWhitelistedTopLevelEntry()
144 bool is_empty = fs::is_empty(path, ec); in IsWhitelistedTopLevelEntry()
154 while (iter != fs::end(iter)) { in IsWhitelistedTopLevelEntry()
189 auto iter = fs::directory_iterator(mount_point, ec); in ValidateShimApex()
197 while (iter != fs::end(iter)) { in ValidateShimApex()