dir_op: log given path and support /ip