Test whether directory is writable
isDirWritable(outDir)
the name of the directory
TRUE if the file is writable isDirWritable("~")