diff --git a/src/dos/drive_local.cpp b/src/dos/drive_local.cpp index 8c0c119e..4abace09 100644 --- a/src/dos/drive_local.cpp +++ b/src/dos/drive_local.cpp @@ -197,6 +197,7 @@ bool localDrive::GetFileAttr(char * name,Bit16u * attr) { struct stat status; if (stat(newname,&status)==0) { *attr=DOS_ATTR_ARCHIVE; + if(status.st_mode & S_IFDIR) *attr|=DOS_ATTR_DIRECTORY; return true; } *attr=0;