---
title: Fs
summary: Class in BIM.works_SDK.
order: 10
languages: [csharp]
sdk-package: .NET · BIM.works_SDK
---

# Fs

[[page:reference/dotnet/api|API catalogue]] · `BIM.works_SDK` · Class

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public class Fs : SdkNamespace
````

API Namespace for (virtual) file system related calls. These calls allow you to build/query the tree structure used to organize models in BIM.works Repository

## Inheritance and interfaces

- `System.Object`
- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14|SdkNamespace]]

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-ctor-3a730a4b7216|Fs(BimWorksClient)]] | Constructor |  |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-createnode-a53a5e99d8a4|CreateNode(Guid, string, bool, InputFileType)]] | Method | Creates a new Node under the provided parent with the given name. You can also indicate whether this is to be a folder node or not. |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-createnodeifnotexists-51a1570c1e94|CreateNodeIfNotExists(Guid, string, bool, InputFileType)]] | Method | Creates a Node but only if it did not already exists. If the Node already existed it's Guid will be returned, otherwise the Guid of the newly created Node is… |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-deletenode-a904ec1c744a|DeleteNode(Guid)]] | Method | Delete the given Node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-deletenodeerror-1cf9149769e3|DeleteNodeError(Guid, Guid)]] | Method | Delete the given Error |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-deletenodeifexists-b7c5c2a48c19|DeleteNodeIfExists(string)]] | Method | Delete the given Node only if it exists. This will not throw an exception if the Node did not exist. Return true if a Node was found and deleted, or false if… |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-deletenodeversion-ce1714b5a3cb|DeleteNodeVersion(Guid, Guid)]] | Method | Delete the given Version |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getnodebypath-3aeb92bf6141|GetNodeByPath(string)]] | Method | Returns a Node by it's path |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getnodebyuuid-d45c5547ec82|GetNodeByUuid(Guid)]] | Method | Return a Node based on it's uuid |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getnodebyversionuuid-fa2f22c07c51|GetNodeByVersionUuid(Guid)]] | Method | Get a Node by the given versionUuid. This is a quick way to get information about the Node of a Version without first acquiring the UUID of the Node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getnodeerror-dabe02b16334|GetNodeError(Guid)]] | Method | Get a Error by it's uuid |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getnodeversion-284e4baf2c48|GetNodeVersion(Guid)]] | Method | Get a NodeVersion by it's uuid |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getrootnode-133c6112e8b9|GetRootNode()]] | Method | Returns the root node of the current context. For normal user accounts this will return the TreeNode of your account. For API Tokens this will return the Nod… |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-getrootnodeuuid-14ac70a97de2|GetRootNodeUuid()]] | Method | Get the UUID of your current root Node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-listnodeerrors-71734d4c6f40|ListNodeErrors(Guid)]] | Method | List all the errors on a given node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-listnodeversions-8df63b6ecb81|ListNodeVersions(Guid)]] | Method | List all the Versions on the given Node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-listnodes-faf0ac9d524c|ListNodes(Guid)]] | Method | Lists all the nodes that exist under the given Node uuid |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-listnodesrecursive-bd343ed273ef|ListNodesRecursive(Guid)]] | Method | Lists all the nodes that exist under the given Node uuid. This will recursive into subfolders but the returned list is flattened. |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-nodeexists-7267072cd56f|NodeExists(string)]] | Method | Returns whether a Node exists at the given path |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-renamenode-23b1911e08d3|RenameNode(Guid, string)]] | Method | Undelete the given Node |
| [[page:reference/dotnet/bim-works-sdk/fs-3d64f129#member-undeletenode-1889db01b171|UndeleteNode(Guid)]] | Method | Undelete the given Node |

## `Fs(BimWorksClient)` {#member-ctor-3a730a4b7216}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public Fs(BimWorksClient bimWorksClient)
````



### Parameters

| Name | Type | Description |
|---|---|---|
| `bimWorksClient` | [[page:reference/dotnet/bim-works-sdk/bimworksclient-38b8aecc|BimWorksClient]] |  |

## `CreateNode(Guid, string, bool, InputFileType)` {#member-createnode-a53a5e99d8a4}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public Guid CreateNode(Guid parentNodeUuid, string name, bool isFolder, InputFileType inputFileType)
````

Creates a new Node under the provided parent with the given name. You can also indicate whether this is to be a folder node or not.

### Parameters

| Name | Type | Description |
|---|---|---|
| `parentNodeUuid` | `System.Guid` |  |
| `name` | `System.String` |  |
| `isFolder` | `System.Boolean` |  |
| `inputFileType` | [[page:reference/dotnet/bim-works-sdk/inputfiletype-2a27e31f|InputFileType]] |  |

## `CreateNodeIfNotExists(Guid, string, bool, InputFileType)` {#member-createnodeifnotexists-51a1570c1e94}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public Guid CreateNodeIfNotExists(Guid parentNodeUuid, string name, bool isFolder, InputFileType inputFileType)
````

Creates a Node but only if it did not already exists. If the Node already existed it's Guid will be returned, otherwise the Guid of the newly created Node is returned.

### Parameters

| Name | Type | Description |
|---|---|---|
| `parentNodeUuid` | `System.Guid` |  |
| `name` | `System.String` |  |
| `isFolder` | `System.Boolean` |  |
| `inputFileType` | [[page:reference/dotnet/bim-works-sdk/inputfiletype-2a27e31f|InputFileType]] |  |

## `DeleteNode(Guid)` {#member-deletenode-a904ec1c744a}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool DeleteNode(Guid nodeUuid)
````

Delete the given Node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## `DeleteNodeError(Guid, Guid)` {#member-deletenodeerror-1cf9149769e3}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool DeleteNodeError(Guid nodeUuid, Guid errorUuid)
````

Delete the given Error

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |
| `errorUuid` | `System.Guid` |  |

## `DeleteNodeIfExists(string)` {#member-deletenodeifexists-b7c5c2a48c19}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool DeleteNodeIfExists(string path)
````

Delete the given Node only if it exists. This will not throw an exception if the Node did not exist.
Return true if a Node was found and deleted, or false if the Node did not exists or could not be deleted.

### Parameters

| Name | Type | Description |
|---|---|---|
| `path` | `System.String` |  |

## `DeleteNodeVersion(Guid, Guid)` {#member-deletenodeversion-ce1714b5a3cb}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool DeleteNodeVersion(Guid nodeUuid, Guid versionUuid)
````

Delete the given Version

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |
| `versionUuid` | `System.Guid` |  |

## `GetNodeByPath(string)` {#member-getnodebypath-3aeb92bf6141}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNode GetNodeByPath(string path)
````

Returns a Node by it's path

### Parameters

| Name | Type | Description |
|---|---|---|
| `path` | `System.String` |  |

## `GetNodeByUuid(Guid)` {#member-getnodebyuuid-d45c5547ec82}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNode GetNodeByUuid(Guid nodeUuid)
````

Return a Node based on it's uuid

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## `GetNodeByVersionUuid(Guid)` {#member-getnodebyversionuuid-fa2f22c07c51}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNode GetNodeByVersionUuid(Guid nodeVersionUuid)
````

Get a Node by the given versionUuid. This is a quick way to get information about the Node of a Version without first acquiring the UUID of the Node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeVersionUuid` | `System.Guid` |  |

## `GetNodeError(Guid)` {#member-getnodeerror-dabe02b16334}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNodeError GetNodeError(Guid nodeErrorUuid)
````

Get a Error by it's uuid

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeErrorUuid` | `System.Guid` |  |

## `GetNodeVersion(Guid)` {#member-getnodeversion-284e4baf2c48}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNodeVersion GetNodeVersion(Guid nodeVersionUuid)
````

Get a NodeVersion by it's uuid

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeVersionUuid` | `System.Guid` |  |

## `GetRootNode()` {#member-getrootnode-133c6112e8b9}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public TreeNode GetRootNode()
````

Returns the root node of the current context. For normal user accounts this will return the TreeNode of your account. For API Tokens this will return the Node on which the API Token was created.

## `GetRootNodeUuid()` {#member-getrootnodeuuid-14ac70a97de2}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public Guid GetRootNodeUuid()
````

Get the UUID of your current root Node

## `ListNodeErrors(Guid)` {#member-listnodeerrors-71734d4c6f40}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public List<TreeNodeError> ListNodeErrors(Guid nodeUuid)
````

List all the errors on a given node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## `ListNodeVersions(Guid)` {#member-listnodeversions-8df63b6ecb81}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public ICollection<TreeNodeVersion> ListNodeVersions(Guid nodeUuid)
````

List all the Versions on the given Node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## `ListNodes(Guid)` {#member-listnodes-faf0ac9d524c}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public List<TreeNode> ListNodes(Guid parentNodeUuid)
````

Lists all the nodes that exist under the given Node uuid

### Parameters

| Name | Type | Description |
|---|---|---|
| `parentNodeUuid` | `System.Guid` |  |

## `ListNodesRecursive(Guid)` {#member-listnodesrecursive-bd343ed273ef}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public List<TreeNode> ListNodesRecursive(Guid nodeUuid)
````

Lists all the nodes that exist under the given Node uuid. This will recursive into subfolders but the returned list is flattened.

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## `NodeExists(string)` {#member-nodeexists-7267072cd56f}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool NodeExists(string path)
````

Returns whether a Node exists at the given path

### Parameters

| Name | Type | Description |
|---|---|---|
| `path` | `System.String` |  |

## `RenameNode(Guid, string)` {#member-renamenode-23b1911e08d3}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool RenameNode(Guid nodeUuid, string newName)
````

Undelete the given Node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |
| `newName` | `System.String` |  |

## `UndeleteNode(Guid)` {#member-undeletenode-1889db01b171}

````csharp sdk=dotnet sdk-namespace="BIM.works_SDK"
public bool UndeleteNode(Guid nodeUuid)
````

Undelete the given Node

### Parameters

| Name | Type | Description |
|---|---|---|
| `nodeUuid` | `System.Guid` |  |

## Inherited members

- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14#member-bimworksclient-1be9291fd000|BimWorksClient]]
- [[page:reference/dotnet/bim-works-sdk/sdknamespace-82399c14#member-execute-c04f7171437b|Execute(Request)]]
- `System.Object.Equals(System.Object)`
- `System.Object.Equals(System.Object,System.Object)`
- `System.Object.GetHashCode`
- `System.Object.GetType`
- `System.Object.MemberwiseClone`
- `System.Object.ReferenceEquals(System.Object,System.Object)`
- `System.Object.ToString`
