Changeset View
Changeset View
Standalone View
Standalone View
plugins/libarchive/libarchiveplugin.cpp
Show First 20 Lines • Show All 452 Lines • ▼ Show 20 Line(s) | 443 | #endif | |||
---|---|---|---|---|---|
453 | if (!group.isEmpty()) { | 453 | if (!group.isEmpty()) { | ||
454 | e->setProperty("group", group); | 454 | e->setProperty("group", group); | ||
455 | } else { | 455 | } else { | ||
456 | e->setProperty("group", static_cast<qlonglong>(archive_entry_gid(aentry))); | 456 | e->setProperty("group", static_cast<qlonglong>(archive_entry_gid(aentry))); | ||
457 | } | 457 | } | ||
458 | 458 | | |||
459 | const mode_t mode = archive_entry_mode(aentry); | 459 | const mode_t mode = archive_entry_mode(aentry); | ||
460 | if (mode != 0) { | 460 | if (mode != 0) { | ||
461 | e->setProperty("permissions", QString::number(mode)); | 461 | e->setProperty("permissions", QString::number(mode, 8)); | ||
462 | } | 462 | } | ||
463 | e->setProperty("isExecutable", mode & (S_IXUSR | S_IXGRP | S_IXOTH)); | 463 | e->setProperty("isExecutable", mode & (S_IXUSR | S_IXGRP | S_IXOTH)); | ||
464 | 464 | | |||
465 | e->compressedSizeIsSet = false; | 465 | e->compressedSizeIsSet = false; | ||
466 | e->setProperty("size", (qlonglong)archive_entry_size(aentry)); | 466 | e->setProperty("size", (qlonglong)archive_entry_size(aentry)); | ||
467 | e->setProperty("isDirectory", S_ISDIR(archive_entry_mode(aentry))); | 467 | e->setProperty("isDirectory", S_ISDIR(archive_entry_mode(aentry))); | ||
468 | 468 | | |||
469 | if (archive_entry_symlink(aentry)) { | 469 | if (archive_entry_symlink(aentry)) { | ||
▲ Show 20 Lines • Show All 119 Lines • Show Last 20 Lines |