Add sepcial handler in c open funcs for root dirs