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)
|
group_id, pad_name = pad_split_group(padid)
|
||||||
if group_id:
|
if group_id:
|
||||||
try:
|
try:
|
||||||
os.mkdir(group_path)
|
os.mkdir(os.path.join(outputpath, group_path))
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
os.mkdir(os.path.join(group_path, group_id))
|
os.mkdir(os.path.join(outputpath, group_path, group_id))
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
fp = os.path.join(outputpath, group_path, group_id, pad_name)
|
fp = os.path.join(outputpath, group_path, group_id, pad_name)
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
os.mkdir(pub_path)
|
os.mkdir(os.path.join(outputpath, pub_path))
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
fp = os.path.join(outputpath, pub_path, pad_name)
|
fp = os.path.join(outputpath, pub_path, pad_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user