Added isReadonly, made doesExist return an int (1 = file, 2 = folder, 0 = null)