{
File file = new File( SystemUtils.getJavaIoTmpDir(), fileName );
log.debug( "delete file:{},exists:{}", file.getPath(), file.exists() );
- boolean removed = getSessionFileMetadatas().remove( new FileMetadata( fileName ) );
+ boolean removed = getSessionFileMetadatas().remove(
+ new FileMetadata( SystemUtils.getJavaIoTmpDir().getPath() + "/" + fileName ) );
if ( file.exists() )
{
return file.delete();
List<FileMetadata> fileMetadatas = new ArrayList( getSessionFileMetadatas() );
for ( FileMetadata fileMetadata : fileMetadatas )
{
- deleteFile( fileMetadata.getServerFileName() );
+ deleteFile( new File( fileMetadata.getServerFileName() ).getName() );
}
return Boolean.TRUE;
}