We need to distinguish between the first ‘/’ and the following ‘/’. The first is the root directory, the following are separators. Therefore, we can treat a directory as ‘/’ + ‘directory name’.
If the directory is “” (empty string), then it is the root directory.