MCPcopy Create free account
hub / github.com/SpartanJ/eepp / isExecutable

Method isExecutable

src/eepp/system/fileinfo.cpp:292–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292bool FileInfo::isExecutable() const {
293#if EE_PLATFORM != EE_PLATFORM_WIN
294 return mPermissions & S_IEXEC;
295#else
296 std::string ext = FileSystem::fileExtension( mFilepath );
297 return ext == "exe" || ext == "bat";
298#endif
299}
300
301bool FileInfo::sameInode( const FileInfo& other ) const {
302 return inodeSupported() && mInode == other.mInode;

Callers 3

mainFunction · 0.80
createProjectTreeMenuMethod · 0.80
openFileFromPathMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected