s4cmd.py
def get_file_privilege(self, source):
    '''Get privileges of a local file'''
    try:
      return str(oct(os.stat(source).st_mode)[-3:])
    except Exception as e:
      raise Failure('Could not get stat for %s, error_message = %s', source, e)
def get_file_privilege(self, source):
    '''Get privileges of a local file'''
    try:
      return str(oct(os.stat(source).st_mode)[-3:])
    except Exception as e:
      raise Failure('Could not get stat for %s, error_message = %s', source, e)
def get_file_privilege ( self , source ) : try : return str ( oct ( os . stat ( source ) . st_mode ) [ - 3 : ] ) except Exception as e : raise Failure ( 'Could not get stat for %s, error_message = %s' , source , e )
Get privileges of a local file
Get privileges of a local file