199 {
200
201
202 if (
203#ifdef __linux__
204
206#endif
207
209
210 boost::system::error_code ec;
211 boost::filesystem::space_info si = boost::filesystem::space(path, ec);
212 if (!ec && si.available != 0) {
213
214 struct stat buf;
215 stat(path.c_str(), &buf);
216 uid_t uid = buf.st_uid;
217 if (getuid() == uid)
218 out.emplace_back(
DriveData{ boost::filesystem::path(path).stem().string(), path });
219 }
220 }
221 }
static bool compare_filesystem_id(const std::string &path_a, const std::string &path_b)
Definition RemovableDriveManager.cpp:188
@ LinuxOnChromium
Definition Platform.hpp:24
PlatformFlavor platform_flavor()
Definition Platform.cpp:108
Definition RemovableDriveManager.hpp:21