Hi Bhushan (cc to the list), So you are exclusively working with binary resources, right? In that case, a query like the following one can be used:
let $db := 'db' let $src-path := 'src/' let $trg-path := 'trg/' for $src in db:list($db, $src-path) let $trg := $trg-path || substring-after($src, $src-path) return db:store($db, $trg, db:retrieve($db, $src)) I have added a slightly revised version of this query in our Wiki [1]. Hope this helps, Christian [1] http://docs.basex.org/wiki/Database_Module#db:store On Wed, Feb 15, 2017 at 6:11 AM, Nanday, Bhushan <[email protected]> wrote: > Hi Christian, > > Thanks for reaching out. I am currently trying to use the > db:store(source, destination, file) in an xqeury. This approach works well > when the source is a file but doesn’t work when the source is a folder. I > need something that will move/copy and entire folder and not just a file. > > > > > > On 2/13/17, 1:46 PM, "Christian Grün" <[email protected]> wrote: > > Hi Bhushan, > > > Hope everyone is doing good. I am currently trying to copy an entire > > folder from the source location to a destination location. > > How did you proceed so far? > > Regards, > Christian > >

