Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fluent-dir-input
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Klaus Wölfel
fluent-dir-input
Commits
9025569b
Commit
9025569b
authored
Sep 25, 2016
by
Klaus Wölfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle correctly the case where lastpath has been removed
parent
7193ec85
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fluent_dir_input.py
fluent_dir_input.py
+2
-2
No files found.
fluent_dir_input.py
View file @
9025569b
...
...
@@ -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
:]:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment