261 @type str |
261 @type str |
262 @param modes list of modes to check for |
262 @param modes list of modes to check for |
263 @type str or list of str |
263 @type str or list of str |
264 @return flag indicating the user has the asked for permissions |
264 @return flag indicating the user has the asked for permissions |
265 @rtype bool |
265 @rtype bool |
|
266 @exception ValueError raised for an illegal modes list |
266 """ |
267 """ |
267 if not modes: |
268 if not modes: |
268 raise ValueError( |
269 raise ValueError( |
269 "At least one of 'read', 'write' or 'execute' must be specified." |
270 "At least one of 'read', 'write' or 'execute' must be specified." |
270 ) |
271 ) |