Commit d8a9141f authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa
Browse files

Check if an entry is a directory.

svn path=/trunk/KDE/kdeutils/ark/; revision=988418
parent fcef9dfe
...@@ -77,9 +77,6 @@ public: ...@@ -77,9 +77,6 @@ public:
return p; return p;
} }
QString m_entryFilename, m_internalId; QString m_entryFilename, m_internalId;
ArchiveEntry m_currentEntry; ArchiveEntry m_currentEntry;
...@@ -104,6 +101,7 @@ public: ...@@ -104,6 +101,7 @@ public:
if (i != -1) { if (i != -1) {
ArchiveEntry e; ArchiveEntry e;
e[Permissions] = entryPattern.cap(1); e[Permissions] = entryPattern.cap(1);
e[IsDirectory] = (entryPattern.cap(1).at(0) == 'd');
e[Owner] = entryPattern.cap(3); e[Owner] = entryPattern.cap(3);
e[Size] = entryPattern.cap(4).toInt(); e[Size] = entryPattern.cap(4).toInt();
QString status = entryPattern.cap(5); QString status = entryPattern.cap(5);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment