Commit 9025569b authored by Klaus Wölfel's avatar Klaus Wölfel

Handle correctly the case where lastpath has been removed

parent 7193ec85
......@@ -43,11 +43,11 @@ class FluentDirInput(object):
def sendAll(self):
path_list = glob.glob(self.path_spec)
lastpath = self.get_lastpath()
if lastpath:
if lastpath and lastpath not in path_list:
path_list.insert(0, lastpath)
path_list = sorted(path_list)
if lastpath:
start_index = path_list.index(lastpath) + 2
start_index = path_list.index(lastpath) + 1
else:
start_index = 0
for filepath in path_list[start_index:]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment