forked from Gardener/ShareX_Storage
fixed server start crash if a file didn't contain a "_"
This commit is contained in:
parent
d9167638f6
commit
0bf1d470da
@ -138,6 +138,7 @@ def main():
|
|||||||
if not os.path.isdir(f'{conf.data_path}/{acc}'):
|
if not os.path.isdir(f'{conf.data_path}/{acc}'):
|
||||||
continue
|
continue
|
||||||
for file in os.listdir(f"{conf.data_path}/{acc}"):
|
for file in os.listdir(f"{conf.data_path}/{acc}"):
|
||||||
|
if "_" in file:
|
||||||
fhash, fname = file.split('_', 1)
|
fhash, fname = file.split('_', 1)
|
||||||
file_db[acc][fhash] = fname
|
file_db[acc][fhash] = fname
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user