Managing Files
In this section, you will find information and examples on how to manipulate the files associated with your application. Learn how to list, read, create, and delete files using the Client or the Application class for efficient resource administration of your application.
All operations below can be performed by either the Client class, the Application class and the CLI. Below are examples of how to perform each of these tasks using both classes:
Getting a list of files
client.app_files_list
and app.files_list
return a list of FileInfo
objects.
Reading a file
client.read_app_file
and app.read_file
return a BytesIO
object.
Creating a file
client.create_app_file
and app.create_file
return a Response
object.
Deleting a file
client.delete_app_file
and app.delete_file
return a Response
object.
Moving a file
client.move_app_file
and app.move_file
return a Response
object.
Was this page helpful?