[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

test[nodeJS] 049 File acces (sync)

"049-1 Testing user permissions with #accessSync:mode:"
"| fs fOk |
fs:= NodeJS fs.
fOk:= {'fs.F_OK;'}.
[fs accessSync: (TestPath,'Sample.txt') mode: fOk]
   on: Error
   do: [:ex| ^self error: '049-1 ',ex]."
self print: '049-1 Not available for version 10.40'.


"049-2 Testing user permissions with #accessSync:"
"[NodeJS fs accessSync: (TestPath,'Sample.txt')]
   on: Error
   do: [:ex| ^self error: '049-2 ',ex]."
self print: '049-2  Not available for version 10.40'.