Length

SCPI Command :

MMEMory:CATalog:LENGth
class LengthCls[source]

Length commands group definition. 1 total commands, 0 Subgroups, 1 group commands

get(path_name: str = None) int[source]
# SCPI: MMEMory:CATalog:LENGth
value: int = driver.massMemory.catalog.length.get(path_name = 'abc')

Returns the number of files and subdirectories of the current or of a specified directory. The number includes the directory strings ‘.’ and ‘..’ so that it corresponds to the number of strings returned by the method RsCmwBase. MassMemory.Catalog.get_ command after the initial numeric parameters.

param path_name:

string If the directory name is omitted, the command queries the contents of the current directory (see method RsCmwBase.MassMemory.CurrentDirectory.set) . If the wildcards ? or * are used, the number of files and subdirectories matching this pattern are returned.

return:

count: No help available