From 74e24213e6f960d61d2df1694b24adb5d4a33dab Mon Sep 17 00:00:00 2001 From: David Kocik Date: Thu, 19 Dec 2019 17:05:23 +0100 Subject: [PATCH] boost::filesystem instead std:: --- src/slic3r/GUI/RemovableDriveManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp index 23ab4bb7f6..353337e473 100644 --- a/src/slic3r/GUI/RemovableDriveManager.cpp +++ b/src/slic3r/GUI/RemovableDriveManager.cpp @@ -20,7 +20,7 @@ GUID WceusbshGUID = { 0x25dbce51, 0x6c8f, 0x4a72, #include #include #include -#include +#include #endif namespace Slic3r { @@ -311,9 +311,9 @@ void RemovableDriveManager::inspect_file(const std::string &path, const std::str if(!compare_filesystem_id(path, parent_path)) { //free space - std::filesystem::space_info fs_si = std::filesystem::space(path); + boost::filesystem::space_info si = boost::filesystem::space(path); //std::cout << "Free space: " << fs_si.free << "Available space: " << fs_si.available << " " << path << '\n'; - if(fs_si.free != 0 && fs_si.available != 0) + if(si.available != 0) { //user id struct stat buf;