s4cmd.py
def conditional(self, result, obj):
    '''Check all file item with given conditions.'''
    fileonly = (self.opt.last_modified_before is not None) or (self.opt.last_modified_after is not None)

    if obj['is_dir']:
      if not fileonly:
        result.append(obj)
      return

    if (self.opt.last_modified_before is not None) and obj['last_modified'] >= self.opt.last_modified_before:
      return

    if (self.opt.last_modified_after is not None) and obj['last_modified'] <= self.opt.last_modified_after:
      return

    result.append(obj)
def conditional(self, result, obj):
    '''Check all file item with given conditions.'''
    fileonly = (self.opt.last_modified_before is not None) or (self.opt.last_modified_after is not None)

    if obj['is_dir']:
      if not fileonly:
        result.append(obj)
      return

    if (self.opt.last_modified_before is not None) and obj['last_modified'] >= self.opt.last_modified_before:
      return

    if (self.opt.last_modified_after is not None) and obj['last_modified'] <= self.opt.last_modified_after:
      return

    result.append(obj)
def conditional ( self , result , obj ) : fileonly = ( self . opt . last_modified_before is not None ) or ( self . opt . last_modified_after is not None ) if obj [ 'is_dir' ] : if not fileonly : result . append ( obj ) return if ( self . opt . last_modified_before is not None ) and obj [ 'last_modified' ] >= self . opt . last_modified_before : return if ( self . opt . last_modified_after is not None ) and obj [ 'last_modified' ] <= self . opt . last_modified_after : return result . append ( obj )
Check all file item with given conditions.
Check all file item with given conditions .