Name : perl-Acme-CPANModules-GettingTempDir
| |
Version : 0.002
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2024-02-19 06:23:29
|
Group : Unspecified
| Source RPM : perl-Acme-CPANModules-GettingTempDir-0.002-lp154.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : List of ways of getting system-wide temporary directory in a portable way
|
Description :
There\'s the good ol\' File::Spec which has a \'tmpdir\' function. On Unix it looks at \'TMPDIR\' environment variable before falling back to \'/tmp\'. File::Temp uses this for its \'tempdir\' when a template is not specified.
Then there\'s File::Util::Tempdir which tries a little harder. On Unix, its \'get_tempdir\' will look at \'TMPDIR\', then also \'TEMPDIR\', \'TMP\', \'TEMP\'. If none of those are set, it will return the first existing directory from the list: \'/tmp\', \'/var/tmp\'. If everything fails, will die.
File::Util::Tempdir also provides \'get_user_tempdir\' which returns a user-private temporary directory, which can be useful if you want to create temporary file with predetermined names. It will return temporary directory pointed by \'XDG_RUNTIME_DIR\' (e.g. \'/run/user/1000\') or, if unavailable, will create a subdirectory under the world-writable temporary directory (e.g. \'/tmp/1000\').
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/15.4/noarch |