Comments (2)
equal_extension
does match mixed case.
Unix shell scripts can't be directly run with fork
exec
so I'm not sure if the CreateProcess
analogy holds. From a C++ viewpoint, executables are those that can be run with std::system
so PATHEXT
would probably be more appropriate.
from filesystem.
I don't think PATHEXT
is applicable as it contains extensions of seemingly non-executable files. On my system it lists:
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
I don't think you are supposed to run JavaScript from command line, for instance. My understanding is that it is the extensions system shell automatically adds to a file name as it tries to find it in some contexts. That context might not be limited to just executing it.
Executable bit on Windows is a best effort emulation, and I agree with Peter in that it is not tied to a specific API. An executable file is something that can be run from shell command line. Personally, though, I would rather remove that code and not treat anything as executable.
from filesystem.
Related Issues (20)
- Tutorial references scripts that have been removed HOT 1
- Directory iterator may produce garbage characters at end of extension HOT 11
- MSVC With C++20 (Or Later) Calls Path Constructor With `nullptr` HOT 2
- ODR violations in boost::filesystem::path HOT 3
- please add basic_fstream move constructor and assignment operator
- Deviation from the standard HOT 1
- filesystem::is_directory() returns wrong result for directories on smb 1 network shares HOT 13
- 1.82.0 beta 1 build broken on OpenBSD HOT 3
- directory_iterator is broken for smb1 locations on windows HOT 4
- Ambigous overloaded operator==(std::string, char*) HOT 1
- More directory_iterator errors HOT 2
- Boost 1.81.0 regression: path can no longer be overloaded with initializer_list<path>
- iterate over directory and delete files no longer works HOT 2
- Get the owner of the file (UID & GID) HOT 3
- Regression: can't stat files on Windows if file is open from another process HOT 2
- error_code parameter not reset in directory_entry::status() HOT 4
- `copy_file()` racing with truncation of `from` file results in endless loop HOT 1
- last_write_time returns invalid time_t HOT 4
- Cannot use with Unreal Engine HOT 1
- Build failure with the clang toolset. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filesystem.