parameters: ()
return_statement: return config_file_dir
docstring: Returns the location of the directory for gsutil state files.
  
    Certain operations, such as cross-process credential sharing and
    resumable transfer tracking, need a known location for state files which
    are created by gsutil as-needed.
  
    This location should only be used for storing data that is required to be in
    a static location.
  
    Returns:
      Path to directory for gsutil static state files.
docstring_summary: Returns the location of the directory for gsutil state files.
docstring_tokens: Returns the location of the directory for gsutil state files .
function: def GetGsutilStateDir():
    """Returns the location of the directory for gsutil state files.
  
    Certain operations, such as cross-process credential sharing and
    resumable transfer tracking, need a known location for state files which
    are created by gsutil as-needed.
  
    This location should only be used for storing data that is required to be in
    a static location.
  
    Returns:
      Path to directory for gsutil static state files.
    """
    config_file_dir = config.get(
        'GSUtil', 'state_dir',
        os.path.expanduser(os.path.join('~', '.gsutil')))
    CreateDirIfNeeded(config_file_dir)
    return config_file_dir
function_tokens: def GetGsutilStateDir ( ) : config_file_dir = config . get ( 'GSUtil' , 'state_dir' , os . path . expanduser ( os . path . join ( '~' , '.gsutil' ) ) ) CreateDirIfNeeded ( config_file_dir ) return config_file_dir