looqs/cli/commanddelete.h
Albert S a1fbf35cde CommandDelete: Rework deletion logic
Allow deleting files from index which still exist
on the fileystem without passing their path to "qss delete".

Thus: "qss delete --deleted" deletes all files which
don't exist anymore.

Also, fix some bugs in offset calculation.
2020-08-30 18:16:08 +02:00

18 строки
378 B
C++

#ifndef COMMANDDELETE_H
#define COMMANDDELETE_H
#include "command.h"
class CommandDelete : public Command
{
public:
using Command::Command;
int handle(QStringList arguments) override;
private:
int remove(QString pattern, bool onlyDeleted, bool verbose, bool dryRun);
int removePaths(const QStringList &paths, bool verbose, bool dryRun);
};
#endif // COMMANDDELETE_H