Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Removed dir option from pfioh & used pfstorage module#62

Open
arnavn101 wants to merge 2 commits into
FNNDSC:masterfrom
arnavn101:master
Open

Removed dir option from pfioh & used pfstorage module#62
arnavn101 wants to merge 2 commits into
FNNDSC:masterfrom
arnavn101:master

Conversation

@arnavn101

Copy link
Copy Markdown
Member

@rudolphpienaar

Copy link
Copy Markdown
Member

Hey @arnavn101 --

I don't understand your logic here. Can you explain what you are doing? I thought we were removing the --storeBase CLI which is not what this is?

Best

@arnavn101

arnavn101 commented Aug 27, 2019

Copy link
Copy Markdown
Member Author

Hi @rudolphpienaar,
There are currently two ways of running the pushPath & pullPath pfioh commands. However, only the keystore version of command is required. So, I deleted lines of code that requires a directory to be specified to use push & pull functions of pfioh.

This is version that requires directory to be specified : https://github.com/FNNDSC/pfioh/wiki/pfioh-command:-pushPath-(absolute)-using-zip#pfurl-calling-syntax

This is keystore version : https://github.com/FNNDSC/pfioh/wiki/pfioh-command:-pushPath-(keystore)-using-zip#pfurl-calling-syntax

@fnndsc-bot

fnndsc-bot commented Aug 27, 2019 via email

Copy link
Copy Markdown

@arnavn101 arnavn101 changed the title Removed dir option from pfioh Removed dir option from pfioh & used pfstorage module Aug 29, 2019
@arnavn101

Copy link
Copy Markdown
Member Author

@danmcp

@husky-parul

Copy link
Copy Markdown

LGTM

Comment thread pfioh/mount_dir.py Outdated
if k == 'is_zip': b_zip = v
if k == 'd_ret': d_ret = v

if str_destPath == '':

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless we are worried about str_desPath not being a string, you should be able to use if str_destPath since empty string is false.

@danmcp

danmcp commented Aug 30, 2019

Copy link
Copy Markdown

The other thing to do with this PR is find any doc references to using the API.

@husky-parul

Copy link
Copy Markdown

@danmcp @rudolphpienaar do not merge this. I am still testing it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants