catch for directory edit attempt