Get path node (file path directory)

Hi everybody,

Im working in a module, and I need to save the path directory of a node.

I would like to know if there is a command to get this (like getdirofnode, obtain something like ‘/User/data/etc/’, and save it like a variable).

Thanks, Lucas.

Review information regarding the “Storage Node”.
https://slicer.readthedocs.io/en/latest/developer_guide/mrml_overview.html#the-storage-node

Then check out the script repository for various example usages of the storage node. You should be able to put together various examples that fit your specific use case.
https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html

1 Like

Hi James, thanks for the info,

Finally I coud do it using the functions GetStorageNode() and GetFullNameFromFileName().

Thanks, Lucas.

1 Like