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

# Path

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

Base class: _\_BlipValue_

## Properties

#### **directory** : _str_ _(Read-Only)_

#### **drive** : _str_ _(Read-Only)_

#### **extension** : _str_ _(Read-Only)_

#### **filename** : _str_ _(Read-Only)_

#### **filenameAndExtension** : _str_ _(Read-Only)_

#### **isInCommon** : _bool_ _(Read-Only)_

#### **isInInternal** : _bool_ _(Read-Only)_

#### **isInObjects** : _bool_ _(Read-Only)_

#### **isInTrash** : _bool_ _(Read-Only)_

#### **lastDirectory** : _str_ _(Read-Only)_

#### **rawFilename** : _str_ _(Read-Only)_

#### **shortened** : _str_ _(Read-Only)_

## Constructors

#### **\_\_init\_\_**(self)

#### **\_\_init\_\_**(self, other: _[Path](/python-api/docs/path#path)_)

#### **\_\_init\_\_**(self, s: _str_)

## Methods

#### **createFolder**(self)

#### **replaceFilename**(self, filename: _str_) -> _[Path](/python-api/docs/path#path)_

#### **to\_string\_view**(self) -> _string\_view_

## Static Methods

#### **pathsToFilenames**(paths: _List\[[Path](/python-api/docs/path#path)\]_) -> _List\[[Path](/python-api/docs/path#path)\]_

Extract filename for every Path in specified list.

**Parameters**:

-   paths A list of absolute or relative file paths.

**Returns** A list of filenames (including file extension).

## Special Methods

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

#### **\_\_repr\_\_**(self) -> _str_

#### **\_\_str\_\_**(self) -> _str_
