mirror of https://github.com/vitalif/grive2
check for broken link when iterating directory (#55)
parent
89e07bb257
commit
5f61be489b
|
@ -79,6 +79,10 @@ void State::FromLocal( const fs::path& p, gr::Resource* folder )
|
||||||
if ( IsIgnore(fname) )
|
if ( IsIgnore(fname) )
|
||||||
Log( "file %1% is ignored by grive", fname, log::verbose ) ;
|
Log( "file %1% is ignored by grive", fname, log::verbose ) ;
|
||||||
|
|
||||||
|
// check for broken symblic links
|
||||||
|
else if ( !fs::exists( i->path() ) )
|
||||||
|
Log( "file %1% doesn't exist (broken link?), ignored", i->path(), log::verbose ) ;
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if the Resource object of the child already exists, it should
|
// if the Resource object of the child already exists, it should
|
||||||
|
|
Loading…
Reference in New Issue