from typing import List
from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class FileCls:
"""
| Commands in total: 1
| Subgroups: 0
| Direct child commands: 1
"""
def __init__(self, core: Core, parent):
self._core = core
self._cmd_group = CommandsGroup("file", core, parent)
[docs]
def get_catalog(self) -> List[str]:
"""
``[SOURce<HW>]:BB:ESEQuencer:PLAYback:FILE:CATalog`` \n
Snippet: ``value: List[str] = driver.source.bb.esequencer.playback.file.get_catalog()`` \n
Queries the available user written PDW files. As response, you get a string containing the existing files ps_def,
separated by commas. To set the default directory, use method ``RsSmw.massMemory.current_directory()`` .
"""
response = self._core.io.query_str('SOURce<HwInstance>:BB:ESEQuencer:PLAYback:FILE:CATalog?')
return Conversions.str_to_str_list(response)