#94527#don't ask for filesize on a directory: behaves different under windows and unix

This commit is contained in:
Andreas Bille 2001-11-08 15:42:46 +00:00
parent ec56ef3344
commit bb9a25b545

View file

@ -716,7 +716,6 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
rtl::OUString aFileUrl;
while( aDirectory.getNextItem( aDirItem ) == osl::FileBase::E_None &&
aDirItem.getFileStatus( aFileStatus ) == osl::FileBase::E_None &&
aFileStatus.isValid( FileStatusMask_FileSize ) &&
aFileStatus.isValid( FileStatusMask_FileURL ) )
{
aFileUrl = aFileStatus.getFileURL();
@ -733,6 +732,8 @@ ConfigData TVChildTarget::init( const Reference< XMultiServiceFactory >& xSMgr )
( str[idx + 4] == 'e' || str[idx + 4] == 'E' ) )
{
OSL_ENSURE( j < MAX_MODULE_COUNT,"too many modules installed" );
OSL_ENSURE( aFileStatus.isValid( FileStatusMask_FileSize ),
"invalid file size" );
configData.filelen[j] = aFileStatus.getFileSize();
configData.fileurl[j++] = aFileUrl ;
}