getfolderstructure: Extracts folderstructure based on data directory.
Description
Extracts folderstructure based on data directory. This is used when
accelerometer files are stored in a hierarchical folder structure and
the user likes to have a reference to the exact position in the folder
tree, rather than just the filename. Function not
intended for direct use by package user.