Пример #1
0
def get_storage_volumes():
    controller = RemoteController("N0AA003759K70700223")

    environment = controller.get_environment_adapter()

    for volume in environment.get_storage_volumes():
        print(volume)
Пример #2
0
def list_files_test():
    controller = RemoteController("N0AA003759K70700223")

    storage = controller.get_environment_adapter().get_external_storage_directory()

    for file in storage.list_files():
        file.is_file()
        file.last_modified()
        file.is_directory()
        file.exist()
        file.get_name()
        file.can_execute()
        file.can_read()
        file.can_write()
        file.get_parent()
        file.get_total_space()
        file.is_hidden()
        file.is_absolute()
        print("-----------------------------------")