Source code for RsFsw.Implementations.MassMemory.CurrentDirectory

from ...Internal.Core import Core
from ...Internal.CommandsGroup import CommandsGroup
from ...Internal import Conversions


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

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

[docs] def set(self, directory: str) -> None: """ ``MMEMory:CDIRectory`` \n Snippet: ``driver.massMemory.currentDirectory.set(directory = 'abc')`` \n This command changes the current directory. :param directory: String containing the path to another directory. The path may be relative or absolute. """ param = Conversions.value_to_quoted_str(directory) self._core.io.write_with_opc(f'MMEMory:CDIRectory {param}')