python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Portably check whether a file is readable
I'm asking the cross-platform version of this question:
C++: How to check if a file/directory is readable? (PHP equivalent: is_readable)
I have a filesystem::path of a file (let's ignore for simplicit...
ein supports Moderator Strike
Votes: 0
Answers: 0
Error with std::filesystem::copy copying a file to another pre-existing directory
See below for the following code, and below that, the error that follows.
std::string source = "C:\\Users\\cambarchian\\Documents\\tested";
std::string destination = "C:\\Users\\cambarc...
Christopher Ambarchian
Votes: 0
Answers: 3
How to properly handle windows paths with the long path prefix with std::filesystem::path
std::filesystem::path doesn't seem to be aware of the windows long path magic prefix.
Is this per design or is there a mode/flag/compiler switch/3rd party library which can be used?
f.e.
for a path l...
ridilculous
Votes: 0
Answers: 1
C++ std::filesystem::last_write_time operator< sometimes not correct?
I want to compare the file age of two files. I tried this:
auto ft1 = std::filesystem::last_write_time("file1");
auto ft2 = std::filesystem::last_write_time("file2");
if (ft1 < ...
Markus Donath
Votes: 0
Answers: 0