[R] create a folder with mode '0777'

Xian Zhang xianzhang at gmail.com
Wed May 4 15:55:44 CEST 2011


Dear list,

I am trying to create a folder structure, say 'test/sub', and set the
folder and sub folder to be writable to everyone.

By default

dir.create('test/sub', recursive=TRUE, mode='0777')

creates folders with mode: drwxr-xr-x

After

Sys.chmod('test/sub',mode='0777')

The folder 'test' is: drwxr-xr-x
and the sub folder 'sub' is: drwxrwxrwx

The question is how to generate a folder and sub folders, with every
folder being drwxrwxrwx ?

I am using a linux/redhat system.

Thank you for your help.
Xian



More information about the R-help mailing list