A directory path. This is the path of a temporary directoy.
=head2 process_id
C<hasprocess_id : int;>
A process ID. This is the process ID of the process that creates a temporary directory.
=head1 Class Methods
=head2 new
C<static method new : L<File::Temp::Dir|SPVM::File::Temp::Dir> ($options: object[] = undef);>
Creates a new L<File::Temp::Dir|SPVM::File::Temp::Dir> object giventhe options $options, and returns it.
L</"process_id"> field is set to the current process ID.
=head3 new Options
=head4 DIR option
C<DIR> : string = undef
A directory where a temproary directory is created.
=head4 TMPDIR option
C<TMPDIR> : L<Int|SPVM::Int> = 0
If this value is a true value and the value of L</"TEMPLATE option"> is definedbut the value of L</"DIR option"> is not defined, the temporary directory in the systemis used as the value of L</"DIR option">.
=head4 TEMPLATE option
C<TEMPLATE> : string = undef
A template. This is the template forthe base name of the temporary direcoty and contains multiple C<X> such as C<tempXXXXX>.
Note:
If the value of this option is definedand the value of L</"DIR"> option is not definedand the value of L</"TMPDIR"> option is not a true value, a temporary directiry is created in the current working directry.
=head4 CLEANUP option
C<CLEANUP> : L<Int|SPVM::Int> = 1
If this value is a true value, the program tries to remove the temporary directory whenthis instance is destroyed.
See L</"DESTROY"> method fordetails.
=head2 DESTROY
C<method DESTROY : void ();>
If the vlaue of L</"CLEANUP option"> is a true value and the current process ID is the same as L</"process_id"> field, removes the temproary directory.
=head1 Copyright & License
Copyright (c) 2023 Yuki Kimoto
MIT License
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)