diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 17:28:55 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-30 17:28:55 +0100 |
commit | 44fcf3643d0032cd7cbb75d9815b3ecfc2b2b6be (patch) | |
tree | 0d742091a1cd2e85225665b0a49e71e8333a9fb9 /sinksh/syntax_modules/sink_drop.cpp | |
parent | 28e67be84c418cb661e7c32f2326d0e665320a1e (diff) | |
download | sink-44fcf3643d0032cd7cbb75d9815b3ecfc2b2b6be.tar.gz sink-44fcf3643d0032cd7cbb75d9815b3ecfc2b2b6be.zip |
sinksh improvements
Diffstat (limited to 'sinksh/syntax_modules/sink_drop.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_drop.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sinksh/syntax_modules/sink_drop.cpp b/sinksh/syntax_modules/sink_drop.cpp index ce468de..3b9a817 100644 --- a/sinksh/syntax_modules/sink_drop.cpp +++ b/sinksh/syntax_modules/sink_drop.cpp | |||
@@ -44,8 +44,7 @@ bool drop(const QStringList &args, State &state) | |||
44 | 44 | ||
45 | auto argList = args; | 45 | auto argList = args; |
46 | auto resource = argList.takeFirst(); | 46 | auto resource = argList.takeFirst(); |
47 | 47 | QDirIterator it(Sink::storageLocation(), QStringList() << SinkshUtils::parseUid(resource.toLatin1()) + "*", QDir::Dirs); | |
48 | QDirIterator it(Sink::storageLocation(), QStringList() << resource + "*", QDir::Dirs); | ||
49 | while (it.hasNext()) { | 48 | while (it.hasNext()) { |
50 | auto path = it.next(); | 49 | auto path = it.next(); |
51 | QDir dir(path); | 50 | QDir dir(path); |