change filesize to filemode to support Windows