@@ -28,10 +28,17 @@ #import "LHAArchive.h" #import "OFArc.h" static OFArc *app; + +static OFString * +indent(OFString *string) +{ + return [string stringByReplacingOccurrencesOfString: @"\n" + withString: @"\n\t"]; +} static void setPermissions(OFString *path, OFLHAArchiveEntry *entry) { #ifdef OF_FILE_MANAGER_SUPPORTS_PERMISSIONS @@ -193,10 +200,32 @@ @"list_osid", @"Operating system identifier: " "%[osid]", @"osid", OSID)]; } + + if ([entry modificationDate] != nil) { + OFString *modificationDate = [[entry + modificationDate] description]; + + [of_stdout writeString: @"\t"]; + [of_stdout writeLine: OF_LOCALIZED( + @"list_modification_date", + @"Modification date: %[date]", + @"date", modificationDate)]; + } + } + + if (app->_outputLevel >= 3) { + OFString *extensions = indent([[entry + extensions] description]); + + [of_stdout writeString: @"\t"]; + [of_stdout writeLine: OF_LOCALIZED( + @"list_extensions", + @"Extensions: %[extensions]", + @"extensions", extensions)]; } } objc_autoreleasePoolPop(pool); }