Merge pull request #92 from ThomasFok/fix/as_import_lock_flag

acx - Imported AppleSingle files are locked
This commit is contained in:
A2 Geek 2023-02-11 18:10:54 -06:00 committed by GitHub
commit 23ae480321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ public class ImportCommand extends ReadWriteDiskCommandOptions {
builder.fileData(as.getDataFork());
builder.resourceData(Optional.ofNullable(as.getResourceFork()));
builder.prodosFiletype(fileType);
builder.locked(info.getAccess() == 0xc3);
builder.locked((info.getAccess()&0xc2) != 0xc2); //Unlocked if destory, rename and write are all enabled
builder.auxiliaryType(info.getAuxType());
if (as.getFileDatesInfo() != null) {