Add IsDirectory and GetFileSize to fileutil