Manage files in My Workspace
Keep your DAG code, scripts, configuration files, and sample data in one place, right in the Airflow UI of your Orchestration service. My Workspace shows them as a folder tree under Root and can connect a folder to a Git repository.
Prerequisites
- An Orchestration service in your workspace. See Create an Orchestration service.
- Access to its Airflow UI, with the URL on the Essential Information tab of the service. See View Orchestration details.
Open My Workspace
-
Sign in to the Airflow UI of your Orchestration service.
-
In the left menu, select Workflow Engine → My Workspace.

My Workspace opens at Root. Root holds the folders of the service, for example dags, plugins, requirements, remote-logs, dag_backups, spark-events, and openmetadata.

My Workspace layout
| Area | Description |
|---|---|
| Toolbar | The add icon (+) opens a menu with New File, New Directory, and Upload File. Next to it, the refresh and home icons, and the help icon (?) on the right. |
| Breadcrumb | The path of the folder that is open, starting at Root. The Copy path icon on the right copies the path. |
| Search | The Search files and directories… box finds files and folders. |
| Directories | On the left. The folder tree of Root. Each folder has a Refresh directory icon. |
| FILES | The main tab. The files and folders of the folder that is open, with the number of items in each folder and a delete icon on each row. |
Create and upload files
New files and folders go into the folder that is selected in Directories or FILES.
Create a file
-
In Directories or FILES, select the folder where you want the file.
-
In the toolbar, select + → New File.

-
Enter a name for the file, and confirm.
To add a DAG to the Orchestration service, create a .py file in the dags folder. If your DAGs come from a Git repository, add the file to the repository instead.
Create a folder
-
In Directories or FILES, select the folder where you want the new folder.
-
In the toolbar, select + → New Directory.
-
In the Create New Directory dialog, enter the Directory Name, then select CREATE.

Upload a file
- In Directories or FILES, select the folder where you want the file.
- In the toolbar, select + → Upload File.
- Choose the file on your computer.
Check the selected folder before you upload.
Manage files and folders
Right-click a file or folder in FILES to open its menu. The menu of a folder has Rename, Copy, Move, Delete, Download, and Initialize Git Repository.

Rename, copy, move, or download
| Action | What to do |
|---|---|
| Rename | Enter the new name, then confirm. |
| Copy | Enter the path of the target folder, then confirm. Leave the path empty to copy to Root. |
| Move | Enter the path of the target folder, then confirm. Leave the path empty to move to Root. |
| Download | The file or folder downloads to your computer. |
Delete a file or folder
- In FILES, select the delete icon at the end of the row. You can also right-click the row, then select Delete.
- To delete a folder with everything in it, select Force delete (recursively delete all contents) in the Delete Directory dialog.
- Select DELETE. To cancel, select CANCEL.

Deleted files and folders cannot be recovered.
Connect a folder to a Git repository
Connect a folder to a Git repository to manage versions and sync source code. This applies only to folders, not to files.
- In FILES, right-click the folder, then select Initialize Git Repository.
- In Repository URL, enter the URL of the Git repository. This field is required.
- In Authentication Type, select how My Workspace authenticates with the repository. See the table below.
- For SSH Key or Username/Password, fill in the fields of the type.
- Select TEST CONNECTION.
- Select INITIALIZE. It becomes available when the connection test succeeds.

| Authentication Type | Description |
|---|---|
| None | Default. For a public repository. You enter no credentials. |
| SSH Key | Authenticates with an SSH key. Enter the key in the SSH Key field, which is required. The key is stored securely in the database. |
| Username/Password | For a private repository, or when Git requires authentication. Enter the Username and Password, which are both required. For GitHub, GitLab, and similar services, you can enter a personal access token in Password. |
Sync a folder with Git
The menu of a folder connected to Git has these items:
- Git Pull: pulls the latest changes of the repository into the folder.
- Git Repository Settings: shows the information and the sync settings of the repository.