Updated setting inode to represent directory