---
title: "ResourceManager"
description: "API documentation for ResourceManager"
url: https://developer.disguise.one/python-api/docs/resourcemanager/
---

# ResourceManager

A singleton used to manage Resources

See also: [Resources Guide](/plugins/guides/resources)

Base class: _\_BlipValue_

## Properties

#### **isSaveAllAllowed** : _bool_

#### **package** : _IFilesystem_ _(Read-Only)_

## Methods

#### **allResources**(self, type: _type\[resourceT\]_) -> _List\[resourceT\]_

#### **checkForCorruption**(self)

#### **emptyTrash**(self, trashedResources: _List\[[Resource](/python-api/docs/resource#resource)\]_)

#### **exists**(self, path: _[Path](/python-api/docs/path#path) | str_) -> _bool_

#### **getMostRecentUserVisibleResourceOfType**(self, type: _type\[resourceT\]_) -> _resourceT_

#### **load**(self, path: _[Path](/python-api/docs/path#path)_, expectedType: _type\[resourceT\]_ = Resource) -> _resourceT_

#### **loadOrCreate**(self, pathNeeded: _[Path](/python-api/docs/path#path)_, expectedType: _type\[resourceT\]_) -> _resourceT_

Load an existing Resource, or create a new Resource

**Parameters**:

-   pathNeeded: A string containing the path for the Resource, formatted as follows ‘objects/{type}/{name}.apx’
-   expectedType: The type of the Resource being created, written in PascalCase and passed as a raw Type, NOT as a String, e.g. ResourceManager

**Returns** resource: The Resource loaded or created by the function

#### **remove**(self, path: _[Path](/python-api/docs/path#path) | str_)

#### **saveAll**(self) -> _[SaveStatus](/python-api/docs/savestatus#savestatus)_

#### **search**(self, match: _str_) -> _List\[str\]_

## Static Methods

#### **get**() -> _[ResourceManager](/python-api/docs/resourcemanager#resourcemanager)_

An existing singleton instance of the ResourceManager, available globally
