added outputpath
This commit is contained in:
parent
93b9273a40
commit
9209f574c5
@ -97,17 +97,17 @@ def dumpPads (padserver, padids, outputpath, pub_path, group_path, sleeptime=0.0
|
||||
group_id, pad_name = pad_split_group(padid)
|
||||
if group_id:
|
||||
try:
|
||||
os.mkdir(group_path)
|
||||
os.mkdir(os.path.join(outputpath, group_path))
|
||||
except OSError:
|
||||
pass
|
||||
try:
|
||||
os.mkdir(os.path.join(group_path, group_id))
|
||||
os.mkdir(os.path.join(outputpath, group_path, group_id))
|
||||
except OSError:
|
||||
pass
|
||||
fp = os.path.join(outputpath, group_path, group_id, pad_name)
|
||||
else:
|
||||
try:
|
||||
os.mkdir(pub_path)
|
||||
os.mkdir(os.path.join(outputpath, pub_path))
|
||||
except OSError:
|
||||
pass
|
||||
fp = os.path.join(outputpath, pub_path, pad_name)
|
||||
|
Loading…
Reference in New Issue
Block a user