add unified interface for accessing file system

**please review**
OK. I was just wondering what happened.