mirror of https://github.com/vitalif/grive2
Just added some newlines, nothing to see here.
parent
be8aa02b72
commit
3c699d7f46
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue