Read check permission
Eduardo Silva
16 years ago
123 | 123 | return False |
124 | 124 | |
125 | 125 | 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 | |
127 | 131 | return False |
128 | 132 | |
129 | 133 | logfile = self._get_filename_from_path(path) |