export the file content only if the file is not a directory