Lines Matching refs:filesystem
11 bool isAnySymlink(const std::filesystem::path& path) in isAnySymlink()
16 if (std::filesystem::is_symlink(currentPath)) in isAnySymlink()
44 std::filesystem::create_directories(path.parent_path(), ec); in store()
82 auto removed = std::filesystem::remove(path, ec); in remove()
93 std::filesystem::remove(path.parent_path(), ec); in remove()
102 if (!std::filesystem::exists(path)) in load()
128 if (!std::filesystem::exists(directory)) in list()
134 std::filesystem::recursive_directory_iterator(directory)) in list()
138 auto item = std::filesystem::relative(p.path(), directory); in list()
146 std::filesystem::path
147 PersistentJsonStorage::join(const std::filesystem::path& left, in join()
148 const std::filesystem::path& right) in join()
153 void PersistentJsonStorage::limitPermissions(const std::filesystem::path& path) in limitPermissions()
155 constexpr auto filePerms = std::filesystem::perms::owner_read | in limitPermissions()
156 std::filesystem::perms::owner_write; in limitPermissions()
157 constexpr auto dirPerms = filePerms | std::filesystem::perms::owner_exec; in limitPermissions()
158 std::filesystem::permissions( in limitPermissions()
159 path, std::filesystem::is_directory(path) ? dirPerms : filePerms, in limitPermissions()
160 std::filesystem::perm_options::replace); in limitPermissions()
165 return std::filesystem::exists(join(directory, subPath)); in exist()
169 const std::filesystem::path& path) in assertThatPathIsNotSymlink()