Template for all directory operations