Source code for RsSmw.Implementations.System.MassMemory.Path

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 PathCls:
	"""
	| Commands in total: 2
	| Subgroups: 0
	| Direct child commands: 2
	"""

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

[docs] def get(self, path_type: str) -> str: """ ``SYSTem:MMEMory:PATH`` \n Snippet: ``value: str = driver.system.massMemory.path.get(path_type = 'abc')`` \n No help available """ param = Conversions.value_to_quoted_str(path_type) response = self._core.io.query_str(f'SYSTem:MMEMory:PATH? {param}') return trim_str_response(response)
[docs] def get_user(self) -> str: """ ``SYSTem:MMEMory:PATH:USER`` \n Snippet: ``value: str = driver.system.massMemory.path.get_user()`` \n Queries the user directory, that means the directory the R&S SMW200A stores user files on. :return: path_user: string """ response = self._core.io.query_str('SYSTem:MMEMory:PATH:USER?') return trim_str_response(response)