QString FileInfo::getDebugInfo() const { const QString str = "\n\tContainer: " + getContainerPath() + "\n\tPath: " + getPath() + "\n\tImageFileName: " + getImageFileName() + "\n\tZipPath: " + getArchiveContainerPath() + "\n\tIsInArchive: " + (isInArchive() ? "true" : "false") + "\n\tContainer Name: " + getContainerName(); return str; }
int fileListGetEntries(FileList *list, char *path) { if (isInArchive()) { return fileListGetArchiveEntries(list, path); } if (strcmp(path, HOME_PATH) == 0) { return fileListGetMountPointEntries(list); } return fileListGetDirectoryEntries(list, path); }
QString FileInfo::getImageFileName() const { if (isInArchive()) { return m_zipImageFileName; } else { return m_image.fileName(); } }
QString FileInfo::getPath() const { QString path; if (isInArchive()) { path = m_container.canonicalFilePath() + "/" + getArchiveImagePath(); } else if (fileExists()) { path = m_image.canonicalFilePath(); } else { path = m_container.canonicalFilePath(); } return path; }