Fullname Property returns incorrect name

Mar 7, 2007 at 3:49 PM
I've noticed that, for both files and folders, the FullName property sometimes returns a name without a "/" in it. Example: /folder/anotherFolderMyFile.txt instead of /folder/anotherFolder/MyFile.txt

the get accessor for this property is

            get
            {
                return Path + Filename;
            }

To fix this, I simply modified it to:

            get
            {
                return Path + ((Path.EndsWith("/")) ? "" : "/") + Filename;
            }

It is possible that this fix might be more properly applied in the Path property
Coordinator
Mar 15, 2007 at 5:05 PM
This discussion has been copied to Work Item 1089. You may wish to continue further discussion there.