Linux web0273.sh.tyo1 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64
Apache
: 127.0.0.1 | : 216.73.216.133
Cant Read [ /etc/named.conf ]
8.3.31
r2745769
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
vendor_perl /
File /
[ HOME SHELL ]
Name
Size
Permission
Action
Comments
[ DIR ]
drwxr-xr-x
Copy
[ DIR ]
drwxr-xr-x
Edit
[ DIR ]
drwxr-xr-x
Find
[ DIR ]
drwxr-xr-x
HomeDir
[ DIR ]
drwxr-xr-x
MimeInfo
[ DIR ]
drwxr-xr-x
ShareDir
[ DIR ]
drwxr-xr-x
Slurp
[ DIR ]
drwxr-xr-x
Spec
[ DIR ]
drwxr-xr-x
Type
[ DIR ]
drwxr-xr-x
BaseDir.pm
7.91
KB
-rw-r--r--
CheckTree.pm
7.55
KB
-rw-r--r--
Comments.pm
17.17
KB
-rw-r--r--
ConfigDir.pm
14.79
KB
-rw-r--r--
DesktopEntry.pm
21.71
KB
-rw-r--r--
Fetch.pm
45
KB
-rw-r--r--
FindLib.pm
9.4
KB
-rw-r--r--
Flat.pm
31.83
KB
-rw-r--r--
HomeDir.pm
21.44
KB
-rw-r--r--
Inplace.pm
7
KB
-rw-r--r--
KeePass.pm
92.86
KB
-rw-r--r--
Listing.pm
10.38
KB
-rw-r--r--
MMagic.pm
54.1
KB
-rw-r--r--
MimeInfo.pm
14.17
KB
-rw-r--r--
NFSLock.pm
20.58
KB
-rw-r--r--
Next.pm
16.25
KB
-rw-r--r--
Path.pm
32.41
KB
-rw-r--r--
Pid.pm
3.93
KB
-rw-r--r--
RandomAccess.pm
14.3
KB
-rw-r--r--
RandomAccess.pod
4.15
KB
-rw-r--r--
ReadBackwards.pm
9.88
KB
-rw-r--r--
Remove.pm
9.2
KB
-rw-r--r--
ShareDir.pm
14.13
KB
-rw-r--r--
Slurp.pm
33
KB
-rw-r--r--
Tail.pm
24.71
KB
-rw-r--r--
Temp.pm
76.82
KB
-rw-r--r--
Tempdir.pm
2.14
KB
-rw-r--r--
Touch.pm
6.72
KB
-rw-r--r--
TreeCreate.pm
6.27
KB
-rw-r--r--
Type.pm
39.14
KB
-rw-r--r--
Which.pm
6.53
KB
-rw-r--r--
chdir.pm
10.86
KB
-rw-r--r--
chmod.pm
12.54
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Tempdir.pm
package File::Tempdir; use strict; use warnings; use File::Temp qw(tempdir); use File::Path; our $VERSION = '0.02'; =head1 NAME File::Tempdir =head1 SYNOPSYS use File::Tempdir; { my $tmpdir = File::Tempdir->new() my $dir = $tmpdir->name; } # the directory has been trashed my $adir = 'any directory'; { my $tmpdir = File::Tempdir->new($dir) my $dir = $tmpdir->name; } # the directory has not been trashed =head1 DESCRIPTION This module provide an object interface to tempdir() from L<File::Temp>. This allow to destroy the temporary directory as soon you don't need it anymore using the magic DESTROY() function automatically call be perl when the object is no longer reference. If a value is passed to at object creation, it become only a container allowing to keep same code in your function. =head1 FUNCTIONS =head2 new(@options) if @options is only one defined value, the directory is simply retain in memory and will not been trashed. Otherwise, @options are same than tempdir() from L<File::Temp>. Refer to L<File::Temp> documentation to have options list. In this case, the directory will be trashed. =cut sub new { my ($class, @args) = @_; if (@args == 1 && defined($args[0])) { # Not a tempdir, simply to have same interface in code return bless({ dir => $args[0] }, $class); } else { my $dir = tempdir(@args) or return undef; return bless({ tmpdir => $dir }, $class); } } sub DESTROY { my ($self) = @_; if ($self->{tmpdir}) { rmtree($self->{tmpdir}, 0, 0); } } =head2 name Return the name of the directory handle by the object. =cut sub name { defined($_[0]->{tmpdir}) ? $_[0]->{tmpdir} : $_[0]->{dir} } 1; __END__ =head1 SEE ALSO In L<File::Temp/"tempdir"> L<File::Path> L<Directory::Scratch> =head1 AUTHOR Olivier Thauvin <nanardon@nanardon.zarb.org> =head1 URL http://nanardon.zarb.org/darcsweb/darcsweb.cgi?r=Tempdir darcs get http://nanardon.zarb.org/darcs/Tempdir =head1 LICENSE AND COPYRIGHT This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut
Close