permissions
This commit is contained in:
parent
6ac693e705
commit
f811d74b5e
2 changed files with 2 additions and 0 deletions
|
@ -788,6 +788,7 @@ class File(db.Model):
|
||||||
path = os.path.join(prefix, new_path)
|
path = os.path.join(prefix, new_path)
|
||||||
ox.makedirs(os.path.dirname(path))
|
ox.makedirs(os.path.dirname(path))
|
||||||
try:
|
try:
|
||||||
|
os.chmod(current_path, stat.S_IWRITE)
|
||||||
shutil.move(current_path, path)
|
shutil.move(current_path, path)
|
||||||
except:
|
except:
|
||||||
logger.debug('failed to move %s to %s', current_path, path, exc_info=True)
|
logger.debug('failed to move %s to %s', current_path, path, exc_info=True)
|
||||||
|
|
|
@ -196,6 +196,7 @@ def run_import(options=None):
|
||||||
listitems = []
|
listitems = []
|
||||||
assert isinstance(prefix, str)
|
assert isinstance(prefix, str)
|
||||||
books = []
|
books = []
|
||||||
|
|
||||||
def activity(count):
|
def activity(count):
|
||||||
if count % 100 == 0:
|
if count % 100 == 0:
|
||||||
state.activity = {
|
state.activity = {
|
||||||
|
|
Loading…
Reference in a new issue