182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
record = index[my_path]
if os.access(file_name, os.R_OK):
info += '\nFull file found.'
file_stat = os.stat(file_name)
elif '_parts' in index[my_path] and os.access(temp_name, os.R_OK):
info += '\nPartial file found.'
file_stat = os.stat(temp_name)
else:
info += '\nFile not found or inaccessible.'
record['_parts'] = None
reload = True
if not '_parts' in record:
record['_parts'] = None
|
>
|
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
record = index[my_path]
if os.access(file_name, os.R_OK):
info += '\nFull file found.'
file_stat = os.stat(file_name)
elif '_parts' in index[my_path] and os.access(temp_name, os.R_OK):
info += '\nPartial file found.'
file_stat = os.stat(temp_name)
recheck = True
else:
info += '\nFile not found or inaccessible.'
record['_parts'] = None
reload = True
if not '_parts' in record:
record['_parts'] = None
|