| 1087 | } |
| 1088 | |
| 1089 | QString FileAccess::cleanPath(const QString& path) // static |
| 1090 | { |
| 1091 | /* |
| 1092 | Tell Qt to treat the supplied path as user input otherwise it will not make useful decisions |
| 1093 | about how to convert from the possibly local or remote "path" string to QUrl. |
| 1094 | */ |
| 1095 | const QUrl url = QUrl::fromUserInput(path, QString(), QUrl::AssumeLocalFile); |
| 1096 | |
| 1097 | if(FileAccess::isLocal(url)) |
| 1098 | { |
| 1099 | return QDir::cleanPath(path); |
| 1100 | } |
| 1101 | else |
| 1102 | { |
| 1103 | return path; |
| 1104 | } |
| 1105 | } |
| 1106 | |
| 1107 | bool FileAccess::createBackup(const QString& bakExtension) |
| 1108 | { |
nothing calls this directly
no outgoing calls
no test coverage detected