mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 05:39:08 +08:00
boost::filesystem instead std::
This commit is contained in:
parent
58a8e9e7e0
commit
74e24213e6
@ -20,7 +20,7 @@ GUID WceusbshGUID = { 0x25dbce51, 0x6c8f, 0x4a72,
|
|||||||
#include <glob.h>
|
#include <glob.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <filesystem>
|
#include <boost/filesystem.hpp>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Slic3r {
|
namespace Slic3r {
|
||||||
@ -311,9 +311,9 @@ void RemovableDriveManager::inspect_file(const std::string &path, const std::str
|
|||||||
if(!compare_filesystem_id(path, parent_path))
|
if(!compare_filesystem_id(path, parent_path))
|
||||||
{
|
{
|
||||||
//free space
|
//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';
|
//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
|
//user id
|
||||||
struct stat buf;
|
struct stat buf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user