Description | manuals and libraries |
Kernel::System::FileTemp - tmp files
This module is managing temporary files and directories.
Don't use the constructor directly, use the ObjectManager instead:
my $FileTempObject = $Kernel::OM->Get('Kernel::System::FileTemp');
returns an opened temporary file handle and its file name. Please note that you need to close the file handle for other processes to write to it.
my ($FileHandle, $Filename) = $TempObject->TempFile(
Suffix => '.png', # optional, defaults to '.tmp'
);
returns a temp directory. The directory and its contents will be removed if the FileTemp object goes out of scope.
This software is part of the OTRS project (https://otrs.org/).
This software comes with ABSOLUTELY NO WARRANTY. For details, see the enclosed file COPYING for license information (GPL). If you did not receive this file, see https://www.gnu.org/licenses/gpl-3.0.txt.