Added function splitPath() to split the path into devicename, path and
filename.