Add APIs: file_architecture, filesize, stat, lstat, lstatlist
fix conflicts
Merge pull request #1636 from shi2wei3/file_dir_APIs_2

Add APIs: file_architecture, filesize, stat, lstat, lstatlist