[CWB] Micro-Patch to check if directory exists when encoding corpus
Alberto Simões
ambs at di.uminho.pt
Sat Feb 6 15:42:39 CET 2010
Hello
In attach a micro patch for cwb-encode. It checks for the directory
where to codify the corpus before trying to write any file.
Basically because when the directory does not exist the error
Can't write .rng file for s-attribute <s>.
Is not self explanatory, especially when the user doesn't have a clue
where the file should be created.
With this patch, when using an unexistant directory cwb-encode will issue:
Supplied directory </corpora/xpto> not available.
Patch was tested under MacOS X (Leopard) and Linux.
Cheers
ambs
--
Alberto Simões
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_path.diff.gz
Type: application/x-gzip
Size: 600 bytes
Desc: not available
Url : http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20100206/58910af5/check_path.diff.bin
More information about the CWB
mailing list