Create and upload to a subfolder in a Raw Repository

4,428 views
Skip to first unread message

Fraser

unread,
Oct 12, 2016, 5:14:36 AM10/12/16
to Nexus Users
In a simple example (per the docs), we can upload a binary asset to a raw repo using curl, such as :-

curl -u admin:admin123 --upload-file releaseCode.zip 'http://localhost:8081/repository/documentation/'

I end up with the asset releaseCode.zip in the documentation repo.

But how do I upload my file and create a structure. For example if I try :-

curl -u admin:admin123 --upload-file releaseCode.zip 'http://localhost:8081/repository/documentation/release/09/2016/'

It would appear that I end up with an asset called release/09/2016/releaseCode.zip rather than a set of sub-folders which contain the releaseCode.zip asset.

Is there a way of acheiving what I need either by a direct file upload as above, or creating the sub-folder structure ahead of time ?

Kind Regards

Fraser.

Rich Seddon

unread,
Oct 13, 2016, 12:02:15 PM10/13/16
to Nexus Users
This is just the way the UI displays it right now, the folders are there (you can see that in the URL of the uploaded artifact), it just displays everything in a flat list.  We're planning on revisiting this UI in a future release.

Rich


Fraser.

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users+unsubscribe@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/36f31eea-d53b-4919-9777-2c3c14a93134%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Fraser Goffin

unread,
Oct 13, 2016, 12:08:23 PM10/13/16
to Rich Seddon, Nexus Users
Ah Ok, thx for clarifying.
>> email to nexus-users...@glists.sonatype.com.
>> To post to this group, send email to nexus...@glists.sonatype.com.
>> To view this discussion on the web visit https://groups.google.com/a/
>> glists.sonatype.com/d/msgid/nexus-users/36f31eea-d53b-
>> 4919-9777-2c3c14a93134%40glists.sonatype.com.
>> For more options, visit https://groups.google.com/a/
>> glists.sonatype.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Nexus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nexus-users...@glists.sonatype.com.
> To post to this group, send email to nexus...@glists.sonatype.com.
> To view this discussion on the web visit
> https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/CALX_hVwiQw0JLDBX-2-gNDa0FFBKzWTXMRFdTWXh8YPK%2Bh%3Dx3A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages