Ensure function for directory with no extensions