file:write - check, if path is existing
Thursday, 19 May 2016 · 3 messages · last reply 20 May 2016
GD
Günter Dunz-Wolff19 May 2016 21:25 #
Hi all,
for the command
file:write($path, distinct-values($list)) I have to check, if $path is existing (for example let $path := ´users/xxx/xxx/etc’. How is it done in XQuery? Thanks for any help.
Cheers,
GünterM
Marc20 May 2016 08:24 #
Hi Günter,
in the file: you have the is-file function.
Does'nt it do the job?
Marc
Quoted text · Günter Dunz-Wolff · 9 lines
Le 19/05/2016 à 21:25, Günter Dunz-Wolff a écrit : > Hi all, > > for the command file:write($path, distinct-values($list)) I have to check, if $path is existing (for example let $path := ´users/xxx/xxx/etc’. > How is it done in XQuery? Thanks for any help. > > Cheers, > Günter >
K
kleist-digital20 May 2016 17:39 #
Hi Marc,
thanks for the hint. In my case
file:is-dir did it. Thanks again.
GünterQuoted text · Marc · 16 lines
> Am 20.05.2016 um 08:24 schrieb Marc <Marc.Liste at free.fr>: > > Hi Günter, > in the file: you have the is-file function. > Does'nt it do the job? > Marc > Le 19/05/2016 à 21:25, Günter Dunz-Wolff a écrit : >> Hi all, >> >> for the command file:write($path, distinct-values($list)) I have to check, if $path is existing (for example let $path := ´users/xxx/xxx/etc’. >> How is it done in XQuery? Thanks for any help. >> >> Cheers, >> Günter >> >
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery