Skip to content

Don't skip files that have no archive attribute set #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/core/FatEntry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ bool FatEntry::printable(unsigned char c)

bool FatEntry::isCorrect()
{
if (attributes && !(attributes&FAT_ATTRIBUTES_DIR) && !(attributes&FAT_ATTRIBUTES_FILE)) {
return false;
}

if (isDirectory() && cluster == 0 && getFilename()!="..") {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/FatEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using namespace std;
#define FAT_ATTRIBUTES_HIDE (1<<1)
#define FAT_ATTRIBUTES_DIR (1<<4)
#define FAT_ATTRIBUTES_LONGFILE (0xf)
#define FAT_ATTRIBUTES_FILE (0x20)
#define FAT_ATTRIBUTES_ARCHIVE (0x20)

// Prefix used for erased files
#define FAT_ERASED 0xe5
Expand Down