mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 21:35:47 +03:00
Check the stat result.
This commit is contained in:
parent
5c79d8bdef
commit
4af8f470e8
1 changed files with 5 additions and 1 deletions
|
@ -231,6 +231,10 @@ sub assertFile($$)
|
|||
print "Asserting $localFile and " . $res->get_property("rel_uri") . "\n";
|
||||
|
||||
my $remoteModTime = $res->get_property( "lastmodifiedepoch" ) ;
|
||||
|
||||
my $stat_ok = stat( toFileName($localFile));
|
||||
print " *** STAT failed for $localFile\n" unless( $stat_ok );
|
||||
|
||||
my @info = stat( toFileName($localFile) );
|
||||
my $localModTime = $info[9];
|
||||
assert( $remoteModTime == $localModTime, "Modified-Times differ: remote: $remoteModTime <-> local: $localModTime" );
|
||||
|
|
Loading…
Reference in a new issue