perl-File-pushd
Change Directory Temporarily for a Limited Scope


File::pushd does a temporary 'chdir' that is easily and automatically reverted, similar to 'pushd' in some Unix command shells. It works by creating an object that caches the original working directory. When the object is destroyed, the destructor calls 'chdir' to revert to the original working directory. By storing the object in a lexical variable with a limited scope, this happens automatically at the end of the scope. This is very handy when working with temporary directories for tasks like testing; a function is provided to streamline getting a temporary directory from File::Temp. For convenience, the object stringifies as the canonical form of the absolute pathname of the directory entered. *Warning*: if you create multiple 'pushd' objects in the same lexical scope, their destruction order is not guaranteed and you might not wind up in the directory you expect.

Apache-2.0

cloud_download Downloads

Please select a product to see the available package versions:
Architecture:
Loading...
Loading package downloads...
SUSE Liberty Linux 9 x86_64
1.016-12.el9 info
lock rpm
lock src
SUSE Liberty Linux 8 x86_64
1.014-6.module+el8.10.0+22411+85254afd info
lock rpm
lock src
1.014-6.module+el8.10.0+22411+409a293e info
lock rpm
lock src
1.014-6.module+el8.10.0+22411+7e3d2305 info
lock rpm
lock src
1.014-6.module+el8.10.0+22411+e14e3526 info
lock rpm
lock src
1.014-6.module+el8.6.0+13396+e9736658 info
lock rpm
lock src
1.014-6.module+el8.2.0+4278+abcfa81a info
lock rpm
lock src
1.014-6.module+el8.1.0+2942+110089f5.fix1 info
lock rpm
lock src
1.014-6.module+el8.1.0+2942+110089f5 info
lock rpm
lock src
1.014-6.module+el8.1.0+2942+5e3df93c.fix1 info
lock rpm
lock src
1.014-6.module+el8.1.0+2942+5e3df93c info
lock rpm
lock src
1.014-5.module+el8+6721+ddde396f info
lock rpm
lock src
1.014-5.module+el8+0727+980410ee info
lock rpm
lock src
SUSE Liberty Linux 10 x86_64
1.016-23.el10 info
lock rpm
lock src