fixed an issue with the base dir for FileAPI
fixed an issue with the base dir for FileAPI