I call nftw() function like this:
nftw()
nftw("/sys/class/tty", opearate_on_tty_item, 1, flags)
and function nftw()