Source code for RsFsw.Implementations.MassMemory.DeleteDirectory

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

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

[docs] def set(self, directory: str) -> None: """ ``MMEMory:RDIRectory`` \n Snippet: ``driver.massMemory.deleteDirectory.set(directory = 'abc')`` \n This command deletes the indicated directory. :param directory: String containing the path of the directory to delete. Note that the directory you want to remove must be empty. """ param = Conversions.value_to_quoted_str(directory) self._core.io.write(f'MMEMory:RDIRectory {param}')
[docs] def get(self) -> str: """ ``MMEMory:RDIRectory`` \n Snippet: ``value: str = driver.massMemory.deleteDirectory.get()`` \n This command deletes the indicated directory. :return: directory: String containing the path of the directory to delete. Note that the directory you want to remove must be empty. """ response = self._core.io.query_str(f'MMEMory:RDIRectory?') return trim_str_response(response)