~zorba-coders/zorba/bug-1188033

« back to all changes in this revision

Viewing changes to test/Queries/dir_02.xq

  • Committer: Zorba Build Bot
  • Author(s): luisrod at LUISROD-LAP
  • Date: 2013-01-08 05:51:25 UTC
  • mfrom: (42.1.10 archive-module)
  • Revision ID: chillery+buildbot@lambda.nu-20130108055125-u1xkefz4urwdmh5w
- Added ability to create directories in archives
- Added testcases Approved: Matthias Brantner, Juan Zacarias

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import module namespace a = "http://www.zorba-xquery.com/modules/archive";
 
2
 
 
3
let $foo-content := "<foo/>"
 
4
let $bar-content := "<bar/>"
 
5
let $archive := a:create(
 
6
  ("foo.xml", "bar.xml", <entry type="directory">dir1</entry>),
 
7
  ($foo-content, $bar-content)
 
8
)
 
9
let $archive2 := a:delete($archive, "dir1/")
 
10
return
 
11
  for $e in a:entries($archive2) return concat($e/text(), ",")