parameters: ()
return_statement: return lst
docstring: List excludes for rsync.
docstring_summary: List excludes for rsync.
docstring_tokens: List excludes for rsync .
function: def global_excludes():
      """
      List excludes for rsync.
      """
      lst = []
      extra_mounts = libcalamares.globalstorage.value("extraMounts")
      if extra_mounts is None:
          extra_mounts = []
  
      for extra_mount in extra_mounts:
          mount_point = extra_mount["mountPoint"]
  
          if mount_point:
              lst.extend(['--exclude', mount_point + '/'])
  
      return lst
function_tokens: def global_excludes ( ) : lst = [ ] extra_mounts = libcalamares . globalstorage . value ( "extraMounts" ) if extra_mounts is None : extra_mounts = [ ] for extra_mount in extra_mounts : mount_point = extra_mount [ "mountPoint" ] if mount_point : lst . extend ( [ '--exclude' , mount_point + '/' ] ) return lst