Clear should also check for directory