add unified interface for accessing file system

**please review**
minor thing: no need to concatenate strings here.