Source code for RsFsw.Implementations.MassMemory.Catalog.Long

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class LongCls:
	"""
	| Commands in total: 1
	| Subgroups: 0
	| Direct child commands: 1
	"""

	def __init__(self, core: Core, parent):
		self._core = core
		self._cmd_group = CommandsGroup("long", core, parent)

[docs] def set(self, directory: str) -> None: """ ``MMEMory:CATalog:LONG`` \n Snippet: ``driver.massMemory.catalog.long.set(directory = 'abc')`` \n This command returns the contents of a particular directory with additional information about the files. :param directory: String containing the path and directory. If you leave out the path, the command returns the contents of the directory selected with method ``RsFsw.massMemory.currentDirectory.set()`` . The path may be relative or absolute. Using wildcards ('*') is possible to query a certain type of files only. """ param = Conversions.value_to_quoted_str(directory) self._core.io.write(f'MMEMory:CATalog:LONG {param}')
[docs] def get(self) -> str: """ ``MMEMory:CATalog:LONG`` \n Snippet: ``value: str = driver.massMemory.catalog.long.get()`` \n This command returns the contents of a particular directory with additional information about the files. :return: directory: String containing the path and directory. If you leave out the path, the command returns the contents of the directory selected with method ``RsFsw.massMemory.currentDirectory.set()`` . The path may be relative or absolute. Using wildcards ('*') is possible to query a certain type of files only. """ response = self._core.io.query_str(f'MMEMory:CATalog:LONG?') return trim_str_response(response)