feature(dom) getDataFromStorage: add isDir condition