Skip to content

Listing files in a shared folder of a workspace as admin #256

@laurent-martin

Description

@laurent-martin

I have developed a script to create share and add an owner to it with full permissions.
My only issue is I need to do a check to see if the share exist already.
if someone request a share with the same name as one that exist already it does not throw an error , and my script will just add them to the share instead.
This command gives me the shares on workspace: "My Workspace"

$ ascli aoc admin workspace shared_folder %name:"My Workspace" list

╭───────┬────────────┬─────────┬─────────┬──────────────────┬──────────────────────────────────────╮
│ id    │ node_name  │ node_id │ file_id │ file.path        │ tags.aspera.files.workspace.share_as │
╞═══════╪════════════╪═════════╪═════════╪══════════════════╪══════════════════════════════════════╡
│ 198   │ My Node    │ 8669    │ 2465    │ /My Share        │                                      │
│ 785   │ My Node    │ 8669    │ 9       │ /EMEA_SE_WS      │                                      │
╰───────┴────────────┴─────────┴─────────┴──────────────────┴──────────────────────────────────────╯

This is the output, but I need the folders under /My Share/Shares.

Metadata

Metadata

Labels

customer requestRequest from end usersquestionFurther information is requested

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions