isDir flag added to File model