p5.34-file-pushd (perl/p5-file-pushd) Updated: 2 years, 3 months ago Add to my watchlist

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.

Version: 1.16.0 License: Apache-2 GitHub
Reset

14 build(s) found
Builder Build Number Start Time Elapsed Time Watcher Build Status
11.arm64 71067 2022-11-08 3:20:28 0:00:13 24951 build successful
10.12 204263 2022-11-08 2:32:17 0:01:03 63182 build successful
10.13 135722 2022-01-06 3:45:33 0:00:15 44743 build successful
10.8 73144 2022-01-04 19:46:02 0:00:14 24091 build successful
10.6 50196 2022-01-04 18:36:58 0:00:22 26212 build successful
10.15 84586 2022-01-04 16:09:23 0:00:26 24399 build successful
10.11 166409 2022-01-04 15:25:45 0:00:23 53749 build successful
10.14 112020 2022-01-04 15:18:49 0:00:24 35401 build successful
11.arm64 40129 2022-01-04 14:36:51 0:00:14 14382 build successful
10.12 171371 2022-01-04 4:53:20 0:00:23 52718 build successful
10.7 81351 2022-01-04 4:33:43 0:00:25 26208 build successful
10.10 167837 2022-01-04 4:24:06 0:00:26 53795 build successful
10.9 172550 2022-01-04 4:19:49 0:00:26 53481 build successful
12.arm64 35297 2022-01-04 1:54:44 0:00:07 3200 build successful