fixed bug with reccursive loop

This commit is contained in:
Jon 2021-09-25 08:23:23 -04:00
parent b33a1cc3c3
commit 943263f9d1
No known key found for this signature in database
GPG key ID: 9665BA6CF5DC2671
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.log
*.yml
.vscode/settings.json

View file

@ -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