> ## Documentation Index
> Fetch the complete documentation index at: https://dev.marginnote.com.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# NSFileManager

> Native instance exported as .

Native instance exported as `NSFileManager`.

## Methods

### allowsWeakReference()

```typescript
allowsWeakReference(): boolean
```

Exported member.

#### Returns

`boolean`

### attributesOfFileSystemForPath()

```typescript
attributesOfFileSystemForPath(_path: string | null): Record<string, unknown> | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`Record<string, unknown> | null`

### attributesOfItemAtPath()

```typescript
attributesOfItemAtPath(_path: string | null): Record<string, unknown> | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`Record<string, unknown> | null`

### autorelease()

```typescript
autorelease(): unknown
```

Exported member.

#### Returns

`unknown`

### class()

```typescript
class(): NativeClass<NativeObject>
```

Exported member.

#### Returns

`NativeClass<NativeObject>`

### componentsToDisplayForPath()

```typescript
componentsToDisplayForPath(_path: string | null): unknown[] | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`unknown[] | null`

### conformsToProtocol()

```typescript
conformsToProtocol(_aProtocol: Protocol | null): boolean
```

Exported member.

#### Parameters

**\_aProtocol** `Protocol | null` *required*

#### Returns

`boolean`

### contentsAtPath()

```typescript
contentsAtPath(_path: string | null): NSData | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`NSData | null`

### contentsEqualAtPathAndPath()

```typescript
contentsEqualAtPathAndPath(_path1: string | null, _path2: string | null): boolean
```

Exported member.

#### Parameters

**\_path1** `string | null` *required*

**\_path2** `string | null` *required*

#### Returns

`boolean`

### contentsOfDirectoryAtPath()

```typescript
contentsOfDirectoryAtPath(_path: string | null): unknown[] | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`unknown[] | null`

### copy()

```typescript
copy(): unknown
```

Exported member.

#### Returns

`unknown`

### copyItemAtPathToPath()

```typescript
copyItemAtPathToPath(_srcPath: string | null, _dstPath: string | null): boolean
```

Exported member.

#### Parameters

**\_srcPath** `string | null` *required*

**\_dstPath** `string | null` *required*

#### Returns

`boolean`

### createDirectoryAtPathAttributes()

```typescript
createDirectoryAtPathAttributes(_path: string | null, _attributes: Record<string, unknown> | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

**\_attributes** `Record\<string, unknown\> | null` *required*

#### Returns

`boolean`

### createDirectoryAtPathWithIntermediateDirectoriesAttributes()

```typescript
createDirectoryAtPathWithIntermediateDirectoriesAttributes(_path: string | null, _createIntermediates: boolean, _attributes: Record<string, unknown> | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

**\_createIntermediates** `boolean` *required*

**\_attributes** `Record\<string, unknown\> | null` *required*

#### Returns

`boolean`

### dealloc()

```typescript
dealloc(): void
```

Exported member.

### debugDescription()

```typescript
debugDescription(): string | null
```

Exported member.

#### Returns

`string | null`

### description()

```typescript
description(): string | null
```

Exported member.

#### Returns

`string | null`

### directoryContentsAtPath()

```typescript
directoryContentsAtPath(_path: string | null): unknown[] | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`unknown[] | null`

### displayNameAtPath()

```typescript
displayNameAtPath(_path: string | null): string | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`string | null`

### doesNotRecognizeSelector()

```typescript
doesNotRecognizeSelector(_aSelector: string | null): void
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

### fileAttributesAtPathTraverseLink()

```typescript
fileAttributesAtPathTraverseLink(_path: string | null, _yorn: boolean): Record<string, unknown> | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

**\_yorn** `boolean` *required*

#### Returns

`Record<string, unknown> | null`

### fileExistsAtPath()

```typescript
fileExistsAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### fileSystemAttributesAtPath()

```typescript
fileSystemAttributesAtPath(_path: string | null): Record<string, unknown> | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`Record<string, unknown> | null`

### finalize()

```typescript
finalize(): void
```

Exported member.

### forwardingTargetForSelector()

```typescript
forwardingTargetForSelector(_aSelector: string | null): unknown
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

#### Returns

`unknown`

### forwardInvocation()

```typescript
forwardInvocation(_anInvocation: NSInvocation | null): void
```

Exported member.

#### Parameters

**\_anInvocation** `NSInvocation | null` *required*

### hash()

```typescript
hash(): number
```

Exported member.

#### Returns

`number`

### isDeletableFileAtPath()

```typescript
isDeletableFileAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### isDirectoryAtPath()

```typescript
isDirectoryAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### isEqual()

```typescript
isEqual(_object: unknown): boolean
```

Exported member.

#### Parameters

**\_object** `unknown` *required*

#### Returns

`boolean`

### isExecutableFileAtPath()

```typescript
isExecutableFileAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### isKindOfClass()

```typescript
isKindOfClass(_aClass: NativeClass<NativeObject>): boolean
```

Exported member.

#### Parameters

**\_aClass** `NativeClass\<NativeObject\>` *required*

#### Returns

`boolean`

### isMemberOfClass()

```typescript
isMemberOfClass(_aClass: NativeClass<NativeObject>): boolean
```

Exported member.

#### Parameters

**\_aClass** `NativeClass\<NativeObject\>` *required*

#### Returns

`boolean`

### isProxy()

```typescript
isProxy(): boolean
```

Exported member.

#### Returns

`boolean`

### isReadableFileAtPath()

```typescript
isReadableFileAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### isWritableFileAtPath()

```typescript
isWritableFileAtPath(_path: string | null): boolean
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`boolean`

### methodForSelector()

```typescript
methodForSelector(_aSelector: NativeSelector): IMP
```

Exported member.

#### Parameters

**\_aSelector** `NativeSelector` *required*

#### Returns

`IMP`

### methodSignatureForSelector()

```typescript
methodSignatureForSelector(_aSelector: string | null): NSMethodSignature | null
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

#### Returns

`NSMethodSignature | null`

### moveItemAtPathToPath()

```typescript
moveItemAtPathToPath(_srcPath: string | null, _dstPath: string | null): boolean
```

Exported member.

#### Parameters

**\_srcPath** `string | null` *required*

**\_dstPath** `string | null` *required*

#### Returns

`boolean`

### mutableCopy()

```typescript
mutableCopy(): unknown
```

Exported member.

#### Returns

`unknown`

### pathContentOfSymbolicLinkAtPath()

```typescript
pathContentOfSymbolicLinkAtPath(_path: string | null): string | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`string | null`

### performSelector()

```typescript
performSelector(_aSelector: string | null): unknown
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

#### Returns

`unknown`

### performSelectorWithObject()

```typescript
performSelectorWithObject(_aSelector: string | null, _object: unknown): unknown
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

**\_object** `unknown` *required*

#### Returns

`unknown`

### performSelectorWithObjectWithObject()

```typescript
performSelectorWithObjectWithObject(_aSelector: string | null, _object1: unknown, _object2: unknown): unknown
```

Exported member.

#### Parameters

**\_aSelector** `string | null` *required*

**\_object1** `unknown` *required*

**\_object2** `unknown` *required*

#### Returns

`unknown`

### release()

```typescript
release(): void
```

Exported member.

### respondsToSelector()

```typescript
respondsToSelector(_aSelector: NativeSelector): boolean
```

Exported member.

#### Parameters

**\_aSelector** `NativeSelector` *required*

#### Returns

`boolean`

### retain()

```typescript
retain(): unknown
```

Exported member.

#### Returns

`unknown`

### retainCount()

```typescript
retainCount(): number
```

Exported member.

#### Returns

`number`

### retainWeakReference()

```typescript
retainWeakReference(): boolean
```

Exported member.

#### Returns

`boolean`

### self()

```typescript
self(): unknown
```

Exported member.

#### Returns

`unknown`

### subpathsAtPath()

```typescript
subpathsAtPath(_path: string | null): unknown[] | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`unknown[] | null`

### subpathsOfDirectoryAtPath()

```typescript
subpathsOfDirectoryAtPath(_path: string | null): unknown[] | null
```

Exported member.

#### Parameters

**\_path** `string | null` *required*

#### Returns

`unknown[] | null`

### superclass()

```typescript
superclass(): NativeClass<NativeObject>
```

Exported member.

#### Returns

`NativeClass<NativeObject>`

### zone()

```typescript
zone(): NativePointer | null
```

Exported member.

#### Returns

`NativePointer | null`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.