Changeset View
Changeset View
Standalone View
Standalone View
krArc/krarc.cpp
Context not available. | |||||
721 | QDir::setCurrent(destDir); | 721 | QDir::setCurrent(destDir); | ||
---|---|---|---|---|---|
722 | 722 | | |||
723 | QString escapedFilename = file; | 723 | QString escapedFilename = file; | ||
724 | if(arcType == "zip") // left bracket needs to be escaped | 724 | if(arcType == "zip") { | ||
725 | // left bracket needs to be escaped | ||||
725 | escapedFilename.replace("[", "[[]"); | 726 | escapedFilename.replace("[", "[[]"); | ||
727 | } | ||||
726 | 728 | | |||
727 | KrLinecountingProcess proc; | 729 | KrLinecountingProcess proc; | ||
728 | proc << copyCmd << getPath(arcFile->url(), QUrl::StripTrailingSlash) << escapedFilename; | 730 | proc << copyCmd << getPath(arcFile->url(), QUrl::StripTrailingSlash) << escapedFilename; | ||
Context not available. | |||||
888 | 890 | | |||
889 | if (arcType.isEmpty()) { | 891 | if (arcType.isEmpty()) { | ||
890 | arcType = arcFile->mimetype(); | 892 | arcType = arcFile->mimetype(); | ||
891 | arcType = arcType.mid(arcType.lastIndexOf("-") + 1); | 893 | arcType = getShortTypeFromMime(arcType); | ||
892 | | ||||
893 | if (arcType == "jar") | 894 | if (arcType == "jar") | ||
894 | arcType = "zip"; | 895 | arcType = "zip"; | ||
895 | } | 896 | } | ||
Context not available. |