mirror of
https://github.com/StuffAnThings/qbit_manage.git
synced 2025-09-16 01:54:36 +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
|
||||
*.yml
|
||||
.vscode/settings.json
|
||||
|
|
|
@ -153,7 +153,7 @@ def get_tags(urls):
|
|||
if i in url:
|
||||
tag = f
|
||||
if tag: return tag,trunc_val(url, '/')
|
||||
tag = ''
|
||||
tag = ('','')
|
||||
logger.warning('No tags matched. Check your config.yml file. Setting tag to NULL')
|
||||
return tag
|
||||
|
||||
|
@ -568,7 +568,7 @@ def nohardlink(file):
|
|||
else:
|
||||
for path, subdirs, files in os.walk(file):
|
||||
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
|
||||
return check
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue