mirror of https://github.com/vitalif/grive2
fixed assertion on dry-runs
parent
dfe89b19b9
commit
023c208d85
|
@ -358,8 +358,8 @@ void Resource::Sync( http::Agent *http, const http::Header& auth )
|
|||
|
||||
void Resource::SyncSelf( http::Agent* http, const http::Header& auth )
|
||||
{
|
||||
assert( !IsRoot() || m_state == sync ) ; // root is already sync
|
||||
assert( IsRoot() || fs::is_directory( m_parent->Path() ) ) ;
|
||||
assert( !IsRoot() || m_state == sync ) ; // root is always sync
|
||||
assert( IsRoot() || http == 0 || fs::is_directory( m_parent->Path() ) ) ;
|
||||
assert( IsRoot() || m_parent->m_state != remote_deleted ) ;
|
||||
assert( IsRoot() || m_parent->m_state != local_deleted ) ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue