fixed /api/file directory that got created