Adding query action to list available directories