AttocubeScan.file

AttocubeScan.file(name, value, create=True, pathsplit=None)

recursely add groups in order to put the named value into a virtual tree of baseFolder.

Parameters
  • name (str) – A name (which may be a nested path) of the object to file.

  • value (metadataObject) – The object to be filed - it should be an instance of baseFolder.type.

Keyword Aprameters:
create(bool):

Whether to create missing groups or to raise an error (default True to create groups).

pathsplit(str or None):

Character to use to split the name into path components. Defaults to using os.path.split()

Returns

(baseFolder) – A reference to the group where the value was eventually filed