Use 0 instead of DDIR_READ to iterate from 0 to DDIR_RWDIR_CNT