Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Make Directory

7 views
Skip to first unread message

Wong-Barnum, Mona

unread,
May 29, 2020, 2:54:35 PM5/29/20
to develope...@globus.org

Hi:

Is the mkdir file operation (https://docs.globus.org/api/transfer/file_operations/#make_directory) necessary if my code has direct access to that endpoint’s filesystem? The transfer should still work if my code makes the necessary directly right instead of using the Globus mkdir?

Mona

*********************************************
Mona Wong
Web & Mobile Application Developer
San Diego Supercomputer Center

"The two most important days in
your life are the day you are born
and the day you find out why."
-- Mark Twain
*********************************************

Wagner, Richard

unread,
May 29, 2020, 5:58:40 PM5/29/20
to develope...@globus.org
Hi Mona,

Provided your code creates the directory before submitting the transfer, that’s fine. I would lean towards using the Transfer API so my code doesn’t get hung up on any file system issue and it can check the status of the operation, but that’s a preference, not a requirement.

Depending on how you’re structuring the permissions on the destination endpoint, you may still need to grant the gateway user write access to the new directory before submitting the transfer.

—Rick

> On May 29, 2020, at 11:54 AM, Wong-Barnum, Mona <mo...@sdsc.edu> wrote:
>
>
> Hi:
>
> Is the mkdir file operation (https://urldefense.com/v3/__https://docs.globus.org/api/transfer/file_operations/*make_directory__;Iw!!Mih3wA!V0zQCX3tL-DPm9Uh5Amha1RZzgPRiHzO0Lc4_Eg0YHhtP8TbhsXCxV0gd9PWL3Zk$ ) necessary if my code has direct access to that endpoint’s filesystem? The transfer should still work if my code makes the necessary directly right instead of using the Globus mkdir?
>
> Mona
>
> *********************************************
> Mona Wong
> Web & Mobile Application Developer
> San Diego Supercomputer Center
>
> "The two most important days in
> your life are the day you are born
> and the day you find out why."
> -- Mark Twain
> *********************************************
>
> --
> To unsubscribe from this group and stop receiving emails from it, send an email to developer-disc...@globus.org.
>

Wong-Barnum, Mona

unread,
May 29, 2020, 6:05:40 PM5/29/20
to develope...@globus.org

Ok thanks Rick!

I was trying to save a network trip and going to the filesystem directly (:

Mona


On May 29, 2020, at 2:58 PM, 'Wagner, Richard' via Developer Discuss <develope...@globus.org> wrote:

Hi Mona,

Provided your code creates the directory before submitting the transfer, that’s fine. I would lean towards using the Transfer API so my code doesn’t get hung up on any file system issue and it can check the status of the operation, but that’s a preference, not a requirement.

Depending on how you’re structuring the permissions on the destination endpoint, you may still need to grant the gateway user write access to the new directory before submitting the transfer.

—Rick

*********************************************
    Mona Wong
    Web & Mobile Application Developer
    San Diego Supercomputer Center

    Believing we are in control is an
    illusion that brings suffering.
*********************************************

Reply all
Reply to author
Forward
0 new messages