[repo] use 'attr()' instead of 'data()' to get dir/file name

* for cases that dir/file name are numbers such as '13.1910'