File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,12 @@ def get_files(conn):
160
160
# Adds symbolic links as read files
161
161
for filename in find_all_links (r_name .parent if r_mode & FILE_LINK
162
162
else r_name , False ):
163
- if filename not in files :
163
+ try :
164
+ f = files [filename ]
165
+ except KeyError :
164
166
f = TracedFile (filename )
165
- f .read (run )
166
167
files [f .path ] = f
168
+ f .read (run )
167
169
# Go to final target
168
170
if not r_mode & FILE_LINK :
169
171
r_name = r_name .resolve ()
@@ -185,7 +187,11 @@ def get_files(conn):
185
187
files [fp .path ] = fp
186
188
187
189
# Identifies input files
188
- if r_name .is_file () and r_name not in executed :
190
+ if (
191
+ not r_mode & FILE_LINK
192
+ and r_name .is_file ()
193
+ and r_name not in executed
194
+ ):
189
195
access_files [- 1 ].add (f )
190
196
cur .close ()
191
197
You can’t perform that action at this time.
0 commit comments