IMP: (#691) option to pas scan directory via api