Skip to content
This repository has been archived by the owner on May 29, 2018. It is now read-only.

Issue when renaming a node with different case. #8

Open
mazzimo opened this issue Nov 4, 2015 · 0 comments
Open

Issue when renaming a node with different case. #8

mazzimo opened this issue Nov 4, 2015 · 0 comments
Labels

Comments

@mazzimo
Copy link

mazzimo commented Nov 4, 2015

If you rename a node with a different character case (Example: from "Page Title" to "page title"). the function "jumoo.usync.content.ContentEvents.SaveContentItemsToDisk" raises a "Source and destination path must be different" exception.

if ( (sourceName!= null) && (item.Name != sourceName ) )
                {
                    LogHelper.Info<ContentExporter>("Rename {0}", () => item.Name);
                    w.RenameContent(item, SourceInfo.GetName(item.Key));
                }

the following condition "renames" the content even when the content name is just changed from lowercase/uppercase. because windows filesystem is case insensitive, source and destination files got exactly the same name.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants