#94527#don't ask for filesize on a directory: behaves different under windows and unix
This commit is contained in:
parent
ec56ef3344
commit
bb9a25b545
1 changed files with 2 additions and 1 deletions
|
@ -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 ;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue