Codebase list sugar-log-activity / 4d9e4de
Read check permission Eduardo Silva 16 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
123123 return False
124124
125125 if not os.path.exists(path):
126 print "ERROR: %s don't exists"
126 print "ERROR: %s don't exists" % path
127 return False
128
129 if not os.access(path, os.R_OK):
130 print "ERROR: I can't read '%s' file" % path
127131 return False
128132
129133 logfile = self._get_filename_from_path(path)