Just added some newlines, nothing to see here.

pull/36/head
Dylan Wulf 2015-10-12 00:38:40 -04:00
parent be8aa02b72
commit 3c699d7f46
1 changed files with 3 additions and 0 deletions

View File

@ -325,11 +325,14 @@ bool State::Move( Syncer* syncer, fs::path old_p, fs::path new_p )
{
if ( (fs::exists(new_p) && !fs::is_directory(new_p) ) || !fs::exists(old_p) )
return false;
if ( fs::is_directory(new_p) ){
if ( new_p.string().at( new_p.string().length() - 1 ) != '/')
new_p = new_p.string() + "/";
new_p = new_p.string() + old_p.filename().string();
}
Resource* res = m_res.Root();
Resource* newParentRes = m_res.Root();
for (fs::path::iterator it = old_p.begin(); it != old_p.end(); ++it)