Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload error with cwd #402

Open
bud42 opened this issue Aug 11, 2022 · 0 comments
Open

upload error with cwd #402

bud42 opened this issue Aug 11, 2022 · 0 comments
Assignees
Labels

Comments

@bud42
Copy link
Member

bud42 commented Aug 11, 2022

For some reason, this getcwd errors out often. We could use shutil.make_archive() instead of shell zip command, then we don't need to change directory.

dax/dax/XnatUtils.py

Lines 1951 to 1955 in 19702b5

initdir = os.getcwd()
# Zip all the files in the directory
os.chdir(directory)
os.system('zip -r %s * > /dev/null' % fzip)
# upload

@bud42 bud42 added the bug label Aug 11, 2022
@bud42 bud42 self-assigned this Aug 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant