[merge-after-multiple-questions] Use directory input api