mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
fix join of extra path into outputdirectory. fixes #262
This commit is contained in:
parent
13730ae659
commit
0ac9cea833
2 changed files with 6 additions and 0 deletions
|
@ -129,6 +129,8 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
|
|||
if inputCategory in noFlatten:
|
||||
newDir = dirpath # find the full path
|
||||
newDir = newDir.replace(inputDirectory, "") #find the extra-depth directory
|
||||
if newDir[0] == "/":
|
||||
newDir = newDir[1:] # remove leading "/" to enable join to work.
|
||||
outputDestination = os.path.join(outputDestinationMaster, newDir) # join this extra directory to output.
|
||||
Logger.debug("MAIN: Setting outputDestination to %s to preserve folder structure", outputDestination)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue