This message was deleted.
# community-support
s
This message was deleted.
v
You can use a
zipTree
as sync source, so yes, should work fine
l
I can't seem to figure out how to specify the subdirectory within the zip file as the 'from' component of the Copy task.
zipTree returns a FileTree, but I can't seem to see how get a sub-tree from it.
v
You don't get a subtree, you use includes and excludes
l
Yes, but the point is, those includes/excludes only tell me which files should be copied over. It does not prevent the parent directory from being included.
so if my zip file has a structure like ... dir1 |- dir2 `- dir3 ... the directory structure is still preserved, instead of just copying dir2 and dir3 to the destination directory like I want it to.
v
For that you can manipulate the path on the fly, but I don't have in mind how and am on mobile. Something like
eachFile { it.relativePath = ... }