std-filesystem Questions
1
Solved
Before i get marked as duplicate, all similar questions i could find have answers prior to the introduction of std::filesystem, and either use platform-specific code or Boost::filesystem. I'm...
Midriff asked 4/5, 2019 at 12:18
1
Solved
The following piece of code aims to strip the first part of a path in case it exists:
#include <filesystem>
std::filesystem::path strip_prefix(std::filesystem::path p)
{
if (auto it{p.beg...
Risner asked 12/12, 2018 at 12:45
4
Solved
Consider for example
file_size. To get the size of a file we will be using
std::filesystem::path p = std::filesystem::current_path();
// ... usual "does this exist && is this a file" boil...
Prelature asked 27/3, 2017 at 17:57
3
Solved
I encountered a problem when upgrading from #include <experimental/filesystem> to #include <filesystem>. It seems that the std::filesystem::path::wstring method is not returning the sam...
Grizelda asked 16/8, 2018 at 22:22
2
Solved
What is the difference between std::filesystem::copy() and std::filesystem::copy_file() in this code?
#include <filesystem>
void testing()
{
const std::filesystem::path src = "foo.txt";
c...
Sideswipe asked 20/8, 2018 at 0:51
1
Solved
I have a project that is currently locked into Visual Studio 2015. However, I want to write code that is as standards-conforming as possible.
I want to use std::filesystem but it didn't make it i...
Trapan asked 1/2, 2018 at 22:42
1
Solved
If I use functions like absolute() I always get a path which contains quotation marks.
Is there a way within the filesystem functions to remove this quotation marks which enables it to use with e....
Sholeen asked 27/4, 2017 at 13:41
2
std::filesystem on C++17, and std::experimental::filesystem for many pre-C++17 compilers, are based on boost::filesystem and almost all of it is obvious to port to the newer std.
But I see no std:...
Rigsby asked 10/4, 2017 at 6:47
© 2022 - 2024 — McMap. All rights reserved.