mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-12-17 14:18:52 +08:00
fixed bug with reccursive loop
This commit is contained in:
parent
b33a1cc3c3
commit
943263f9d1
2 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
*.log
|
*.log
|
||||||
*.yml
|
*.yml
|
||||||
|
.vscode/settings.json
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ def get_tags(urls):
|
||||||
if i in url:
|
if i in url:
|
||||||
tag = f
|
tag = f
|
||||||
if tag: return tag,trunc_val(url, '/')
|
if tag: return tag,trunc_val(url, '/')
|
||||||
tag = ''
|
tag = ('','')
|
||||||
logger.warning('No tags matched. Check your config.yml file. Setting tag to NULL')
|
logger.warning('No tags matched. Check your config.yml file. Setting tag to NULL')
|
||||||
return tag
|
return tag
|
||||||
|
|
||||||
|
|
@ -568,7 +568,7 @@ def nohardlink(file):
|
||||||
else:
|
else:
|
||||||
for path, subdirs, files in os.walk(file):
|
for path, subdirs, files in os.walk(file):
|
||||||
for x in files:
|
for x in files:
|
||||||
if (os.stat(os.path.join(file,x)).st_nlink > 1):
|
if (os.stat(os.path.join(path,x)).st_nlink > 1):
|
||||||
check = False
|
check = False
|
||||||
return check
|
return check
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue