1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179
|
Revision history for Path-Tiny
0.148 2025-03-17 07:18:28-04:00 America/New_York
[Bug fixes]
- Fixed problems with exceptions.
[Documentation]
- Cross-referenced slurp and lines.
0.147 2025-03-10 22:11:06-04:00 America/New_York (TRIAL RELEASE)
[Changes]
- Invalid arguments when hash references are expected throw exceptions.
0.146 2024-05-08 08:27:52-04:00 America/New_York
- No changes from 0.145-TRIAL
0.145 2024-05-01 22:26:26-04:00 America/New_York (TRIAL RELEASE)
[Changes]
- Improved error message spewing to a file in a non-existent directory.
0.144 2022-12-01 11:36:19-05:00 America/New_York
- No changes from 0.143-TRIAL
0.143 2022-11-26 17:46:59-05:00 America/New_York (TRIAL RELEASE)
[Testing]
- Fixed tilde expansion tests where ~root expands to '/'.
0.142 2022-11-09 07:06:36-05:00 America/New_York
No changes from 0.141; all changes since last stable release are summarized below.
[*** DEPRECATIONS ***]
- Tilde expansion is deprecated due to inconsistent and bug-prone behavior.
[Bug fixes]
- Prevent expansion of tildes that are not the very first character (e.g.
"./~foo"). Prevent unintentional tilde expansion during internal path
processing. Escape non-tilde glob characters before tilde expansion.
- Fixed spew/edit to a long filename approaching the filesystem length
limit.
- Internal calls to `print` are checked for possible errors.
- Internal read calls are checked for errors.
[Changes]
- Path stringification now adds "./" in front of paths starting with literal tilde
so they will round-trip. FREEZE updated to use this stringification rule as well.
- `move` now uses File::Copy::move internally instead of the built-in `rename`,
allowing it to work across filesystems. It also returns an object for the
moved location, allowing chaining.
- edit_lines_raw now uses a buffered raw I/O layer. edit_lines_utf8 now
prefers PerlIO::utf8_strict, if available.
- lines_utf8 now consistently uses a buffered I/O layer.
- open*_utf8 now prefers PerlIO::utf8_strict, if available.
- slurp_utf8 now consistently uses an unbuffered I/O layer.
[Documented]
- Changed all raw/UTF-8 layer descriptions in method documentation to match
the code.
- Fixed SYNOPSIS syntax.
- Documented how to disable TMPDIR when making temp files/dirs.
[Testing]
- Add additional tilde stringification testing.
- Fixed tilde expansion tests on Windows.
- Skip a problematic test case on cygwin.
0.141 2022-11-07 12:47:25-05:00 America/New_York (TRIAL RELEASE)
[Testing]
- Add additional tilde expansion tests
0.139 2022-11-03 15:44:46-04:00 America/New_York (TRIAL RELEASE)
[Testing]
- Skip a problematic test case on cygwin
0.137 2022-11-02 09:50:26-04:00 America/New_York (TRIAL RELEASE)
[Testing]
- Add additional tilde stringification testing.
0.135 2022-11-01 22:27:21-04:00 America/New_York (TRIAL RELEASE)
[Testing]
- Fixed additional issues with tilde expansion tests on Windows for testers
with lowercase drive letters in their userprofile.
0.133 2022-10-31 23:55:01-04:00 America/New_York (TRIAL RELEASE)
[Bug fixes]
- Path stringification now adds "./" in front of paths starting with literal tilde
so they will round-trip. FREEZE updated to use this stringification rule as well.
[Changes]
- `move` now uses File::Copy::move internally instead of the built-in `rename`,
allowing it to work across filesystems. It also returns an object for the
moved location, allowing chaining.
[Testing]
- Fixed tilde expansion tests on Windows.
0.131 2022-10-31 10:42:46-04:00 America/New_York (TRIAL RELEASE)
[*** DEPRECATIONS ***]
- Tilde expansion is deprecated due to inconsistent and bug-prone behavior.
[Bug fixes]
- Fixed spew/edit to a long filename approaching the filesystem length
limit.
- Internal calls to `print` are checked for possible errors.
- Internal read calls are checked for errors.
- Prevent expansion of tildes that are not the very first character (e.g.
"./~foo"). Prevent unintentional tilde expansion during internal path
processing. Escape non-tilde glob characters before tilde expansion.
[Changes]
- edit_lines_raw now uses a buffered raw I/O layer. edit_lines_utf8 now
prefers PerlIO::utf8_strict, if available.
- lines_utf8 now consistently uses a buffered I/O layer.
- open*_utf8 now prefers PerlIO::utf8_strict, if available.
- slurp_utf8 now consistently uses an unbuffered I/O layer.
[Documented]
- Changed all raw/UTF-8 layer descriptions in method documentation to match
the code.
- Fixed SYNOPSIS syntax.
- Documented how to disable TMPDIR when making temp files/dirs.
0.130 2022-10-20 07:08:01-04:00 America/New_York
[Bug fixes]
- mkdir no longer fails when applied to an existing directory.
0.128 2022-10-19 15:32:39-04:00 America/New_York
- No changes from 0.127-TRIAL.
0.127 2022-10-05 17:17:36-04:00 America/New_York (TRIAL RELEASE)
[Testing]
- Fixed has_same_bytes test for Windows.
0.125 2022-09-30 17:08:36-04:00 America/New_York (TRIAL RELEASE)
[*** DEPRECATIONS ***]
- The 'mkpath' method is deprecated in favor of 'mkdir'.
[Additions]
- Added 'mkdir' to replace 'mkpath', but returning the path object for chaining.
- Added `has_same_bytes` to efficiently compare the contents of two files.
[Documentation]
- Edited SYNOPSIS
0.124 2022-09-02 11:06:12-04:00 America/New_York
- No changes from 0.123-TRIAL.
0.123 2022-08-29 11:06:49-04:00 America/New_York (TRIAL RELEASE)
[Documentation]
- Added link to `touchpath` in the `mkpath` docs.
- Fixed example in `tempfile` docs.
0.122 2022-01-16 10:05:08-05:00 America/New_York
- No changes from 0.121-TRIAL.
0.121 2022-01-08 11:05:33-05:00 America/New_York (TRIAL RELEASE)
[Additions]
- Adds `size` and `size_human` methods. The latter gives `ls -lh` style
output, with options to choose base2 or base10 forms.
0.120 2021-10-24 12:12:57-04:00 America/New_York
- No changes from 0.119-TRIAL.
0.119 2021-10-20 18:15:24-04:00 America/New_York (TRIAL RELEASE)
[Changes]
- The `tempdir` and `tempfile` methods may be called on a Path::Tiny object
representing a directory, in which case the directory will be used as the
container for the temporary object (as if the `DIR` argument were used).
0.118 2021-02-04 19:09:58-05:00 America/New_York
- No changes from 0.117-TRIAL.
0.117 2021-01-31 21:22:29-05:00 America/New_York (TRIAL RELEASE)
[Tests]
- Skip symlink tests on Windows by actually testing symlinks, as Perl
5.33.5 adds notional support but it's not possible without elevated
privileges.
0.116 2021-01-22 10:32:22-05:00 America/New_York
- No changes from 0.115-TRIAL.
0.115 2021-01-19 12:01:33-05:00 America/New_York (TRIAL RELEASE)
[Tests]
- Fixes tests on MSYS without symlinks enabled.
0.114 2020-04-26 10:10:29-04:00 America/New_York
- No changes from 0.113-TRIAL.
0.113 2020-04-14 16:06:58-04:00 America/New_York (TRIAL RELEASE)
[Fixes]
- Uses \z instead of $ in regular expressions
0.112 2020-01-28 22:12:16-05:00 America/New_York
- No changes from 0.111-TRIAL.
0.111 2020-01-23 10:54:48-05:00 America/New_York (TRIAL RELEASE)
- Another test fix on Windows, possibly due to a behavior change in
Cwd::getdcwd.
0.110 2020-01-13 13:11:38-05:00 America/New_York
- No changes from 0.109-TRIAL.
0.109 2020-01-02 12:24:25-05:00 America/New_York (TRIAL RELEASE)
- Fixes tests on Windows, particularly with newer File::Spec.
0.108 2018-07-30 15:35:23-04:00 America/New_York
- No changes from 0.107-TRIAL.
0.107 2018-07-24 15:10:36-04:00 America/New_York (TRIAL RELEASE)
[Fixes]
- Fixed a bug where failure to load optional modules would trigger
an external $SIG{__DIE__} handler.
0.106 2018-07-14 09:37:00-04:00 America/New_York
[Tests]
- Protected t/locking.t from PERL_PATH_TINY_NO_FLOCK already
in the environment.
0.105 2018-07-07 10:09:04-04:00 America/New_York (TRIAL RELEASE)
[Additions]
- The PERL_PATH_TINY_NO_FLOCK environment variable has been added to
allow users to disable file locking (and any associated warnings).
[Changes]
- Detection of unsupported 'flock' is no longer BSD-specific. This
allows detecting and warning, for example, with the Luster filesystem
on Linux.
[Tests]
- Improve reliability and diagnostics of tests run via 'do'.
0.104 2017-02-17 07:17:00-05:00 America/New_York
- No changes from 0.103-TRIAL.
0.103 2017-02-10 17:25:06-05:00 America/New_York (TRIAL RELEASE)
[Bug fixes]
- Path::Tiny 0.101 on Windows made `$path->absolute("/foo")` return an
absolute path starting with 'C:/foo', which was an unintentional
behavior change. This release now uses any absolute base without
further normalization.
0.101 2017-02-05 09:56:46-05:00 America/New_York (TRIAL RELEASE)
[Changes]
- The 'absolute' method now always returns an absolute path, even if a
user provided a relative path for the base path. The old, odd
behavior was documented, but people often don't read docs. The new
behavior avoids surprises.
[Additions]
- Added 'cached_temp' method.
0.100 2017-01-14 22:47:55-05:00 America/New_York
- No changes from 0.099-TRIAL.
0.099 2017-01-10 15:12:13-05:00 America/New_York (TRIAL RELEASE)
[Tests]
- Fixed tests for eventual removal of '.' from `@INC` in Perl.
[Documentation]
- Fixed filehandle mode typo.
- Fixed typo in relative() that mentioned rel2abs instead of abs2rel.
0.098 2016-10-09 23:25:11-04:00 America/New_York
- No changes from 0.097-TRIAL.
0.097 2016-09-30 22:03:10-04:00 America/New_York (TRIAL RELEASE)
[Additions]
- Added 'realpath' option for 'tempfile' and 'tempdir' for situations
where an absolute temporary path just isn't enough.
0.096 2016-07-02 21:25:33-04:00 America/New_York
- No changes from 0.095
0.095 2016-06-28 12:05:03-04:00 America/New_York (TRIAL RELEASE)
[Tests]
- Improved method for hiding some modules during tests.
0.094 2016-05-23 12:45:19-04:00 America/New_York
- Fixed Changes note typo in 0.092. 0.092 had no changes since 0.091,
not 0.090, meaning that all 0.091 changes were (and are) included.
0.092 2016-05-23 11:36:54-04:00 America/New_York
- No changes from 0.091
0.091 2016-05-17 13:32:21-04:00 America/New_York (TRIAL RELEASE)
[Changes]
- Path::Tiny will prefer PerlIO::utf8_strict over encoding(UTF-8)
if available and Unicode::UTF8 is not installed.
[Fixes]
- The 'touch' method can now set the current time on files that aren't
owned, as long as they are writeable.
[Tests]
- Improved consistency of symlink support inspection; now always
looks at $Config{d_symlink}.
- Skips impossible test on 'msys' platform.
0.090 2016-05-02 07:08:58-04:00 America/New_York
- No changes from 0.089
0.089 2016-04-26 22:21:00-04:00 America/New_York (TRIAL RELEASE)
[Fixes]
- Fix spew_utf8 to allow array references as input.
0.088 2016-04-15 08:41:07-04:00 America/New_York
- No changes from 0.087
0.087 2016-04-12 12:13:14-04:00 America/New_York (TRIAL RELEASE)
[Fixes]
- Fixed bugs in relative symlink resolution for realpath, spew and
edit_lines.
[Changes]
- Symlink resolution will detect circular loops and throw an error.
0.086 2016-04-03 13:49:37-04:00 America/New_York
[Documented]
- Improved documentation of copy and move.
0.084 2016-03-04 07:17:49-05:00 America/New_York
[Fixes]
- Fixed relative() for the case with regex metacharacters in the path
0.082 2016-03-01 18:23:26-05:00 America/New_York
[!!! INCOMPATIBLE CHANGES !!!]
- (This warning repeated from 0.079-TRIAL) The relative() method no
longer uses File::Spec's buggy abs2rel method. The new Path::Tiny
algorithm should be comparable and passes File::Spec abs2rel test
cases, except that it correctly accounts for symlinks. For common
use, you are not likely to notice any difference. For uncommon use,
this should be an improvement. As a side benefit, this change drops
the minimum File::Spec version required, allowing Path::Tiny to be
fatpacked if desired.
[Changes]
- no other changes from 0.081
0.081 2016-02-18 16:55:37-05:00 America/New_York (TRIAL RELEASE)
[Fixed]
- Fixed lines_utf8+chomp and relative() bugs on Windows
0.079 2016-02-15 20:52:10-07:00 America/Mazatlan (TRIAL RELEASE)
[!!! INCOMPATIBLE CHANGES !!!]
- The relative() method no longer uses File::Spec's buggy rel2bs
method. The new Path::Tiny algorithm should be comparable and passes
File::Spec abs2rel test cases, except that it correctly accounts for
symlinks. For common use, you are not likely to notice any
difference. For uncommon use, this should be an improvement. As a
side benefit, this change drops the minimum File::Spec version
required, allowing Path::Tiny to be fatpacked if desired.
[FIXED]
- Fixed lines_utf8() with chomping for repeated empty lines.
[DOCS]
- Documented that subclassing is not supported
0.077 2016-02-10 14:17:32-07:00 America/Mazatlan (TRIAL RELEASE)
[ADDED]
- Added 'edit' and 'edit_lines' plus _utf8 and _raw variants; this
is similar to perl's -i flag (though without backups)
0.076 2015-11-16 10:47:24-05:00 America/New_York
- no changes from 0.075
0.075 2015-11-15 21:02:18-05:00 America/New_York (TRIAL RELEASE)
[FIXED]
- Tilde expansion on Windows was resulting in backslashes. Now they
are correctly normalized to forward slashes.
[DOCS]
- Typos fixed
0.073 2015-10-30 10:36:18-04:00 America/New_York (TRIAL RELEASE)
[FIXED]
- Fixed spewing to a symlink that crosses a filesystem boundary
[PREREQS]
- Add Test::MockRandom to META as an recommended test prerequisite.
0.072 2015-07-20 16:07:20-04:00 America/New_York
- No changes from 0.071
0.071 2015-07-17 13:40:08-04:00 America/New_York (TRIAL RELEASE)
[FIXED]
- Fixed incorrect error argument for File::Path functions
(mkpath and remove_tree)
0.070 2015-06-28 13:50:16-04:00 America/New_York
- No changes from 0.069
0.069 2015-06-18 18:09:44-04:00 America/New_York (TRIAL RELEASE)
[CHANGED]
- The 'copy' method now returns the object for the copied file
[FIXED]
- The 'visit' method only dereferences the callback return value
for scalar refs, avoiding some common bugs
0.068 2015-03-23 20:42:56-04:00 America/New_York
[META]
- Jumping to 0.068 to get to an even-version for a stable release
[DOCUMENTED]
- Noted that 0.66 changed the 'filehandle' method
0.066 2015-03-20 23:59:08-04:00 America/New_York (TRIAL RELEASE)
[ADDED]
- Added exclusive locking option to filehandle opens; spew now
exclusively locks tempfile used for atomic writes
0.065 2015-03-06 05:59:56-05:00 America/New_York
[ADDED]
- Added 'assert' method
- Added 'visit' method
- Added support for a negative count for 'lines' to get the
last lines of a file
[FIXED]
- Fixed tilde expansion if path has spaces
- Make realpath non-fatal if the parent path exists and only the final
path component does not. (Was fatal on Windows and some Unixes.)
- Removed rendundant locking on tempfile use for spewing
- Work around File::Temp bugs on older ActiveState Windows Perls
https://bugs.activestate.com/show_bug.cgi?id=104767
[DOCUMENTED]
- Fixed SYNOPSIS example
0.064 2015-03-05 03:58:42-05:00 America/New_York (TRIAL RELEASE)
0.063 2015-03-04 16:00:17-05:00 America/New_York (TRIAL RELEASE)
0.062 2015-03-04 13:59:31-05:00 America/New_York (TRIAL RELEASE)
0.061 2014-11-13 16:50:05-05:00 America/New_York
[FIXED]
- Fixed append_utf8 and append_raw with 'truncate' option.
0.060 2014-11-04 17:33:39-05:00 America/New_York
[ADDED]
- Added 'truncate' option to append for in-place replacement of
file contents.
0.059 2014-10-14 12:45:46-04:00 America/New_York
[FIXED]
- Fixed precedence bug in the check for Unicode::UTF8
0.058 2014-09-23 11:00:24-04:00 America/New_York
[ADDED]
- Added a 'sibling' method as a more efficient form of
calling $path->parent->child(...).
[DOCUMENTED]
- Every method annotated with the version number of the
last API change.
0.057 2014-09-19 11:23:05-04:00 America/New_York
[FIXED]
- On AIX, reads that default to locking would fail without
write permissions, because locking needs write permissions.
The fix is only to lock reads if write permissions exist;
otherwise locking is skipped.
0.056 2014-08-07 15:08:41-04:00 America/New_York
[*** DEPRECATIONS ***]
- The 'dirname' method is deprecated due to exposing File::Spec
inconsistencies
[ADDED]
- The 'digest' method now takes a 'chunk_size' option to avoid
slurping files entirely into memory.
[FIXED]
- Fixed problem throwing errors from 'remove'
0.055 2014-06-30 10:29:28-04:00 America/New_York
[FIXED]
- tempfile/tempdir won't warn if used as functions without arguments
0.054 2014-05-04 13:56:11-04:00 America/New_York
[ADDED]
- The 'basename' method now takes a list of suffixes to remove before
returning the name
- FREEZE/THAW/TO_JSON serialization helpers
[CHANGED]
- When constructing a Path::Tiny object from another, the original
is returned unless it's a temp dir/file. This significantly
speeds up calling path($path) if $path is already a Path::Tiny
object. (Thanks to Michael Schwern for prompting such benchmarking.)
[FIXED]
- Constructing any path -- e.g. with child() -- with undef or
zero-length parts throws an error instead of constructing an
invalid path
0.053 2014-03-24 09:25:51-04:00 America/New_York (TRIAL RELEASE)
[INCOMPATIBLE CHANGES]
- The 'is_file' method now does -e && ! -d and not -f because -f
is often more restrictive than people intend or expect.
[ADDED]
- Added 'chmod' method with symbolic chmod support ("a=r,u+rx")
0.052 2014-01-14 15:58:03-05:00 America/New_York
[FIXED]
- Backslash-to-slash conversion now only happens on Windows
(since backslash is legal on Unix, we must allow it)
0.051 2013-12-20 07:34:14 America/New_York
[FIXED]
- Fixed file order bug in the new test file
0.050 2013-12-20 07:27:20 America/New_York
[FIXED]
- Recursive iteration won't throw an exception if a directory is
removed or unreadable during iteration.
0.049 2013-12-12 00:48:01 America/New_York
[FIXED]
- Generates filename for atomic writes independent of thread-ID.
Fixes crashing bug on Win32 when fork() is called.
0.048 2013-12-11 21:56:23 America/New_York
[ADDED]
- Added 'subsumes' method
[CHANGED]
- The 'chomp' option for 'lines' will remove any end-of-line sequences
fully instead of just chomping the last character
- The 'flock' package will no longer indexed by PAUSE
[FIXED]
- Hides warnings and fixes possible fatal errors from pure-perl Cwd,
particularly on MSWin32
0.047 2013-11-26 15:11:13 America/New_York
[FIXED]
- Previous lock testing fixes broke on Windows (sigh); now fixed,
I hope.
0.046 2013-11-22 17:07:24 America/New_York
[FIXED]
- Revised locking tests for portability again: locks are now tested
from a separate process
0.045 2013-11-22 15:28:50 America/New_York
[FIXED]
- Fixed locking test on AIX
0.044 2013-10-17 17:00:41 America/New_York
[FIXED]
- Fixed child path construction against the root path.
- Fixed path construction when a relative volume is provided as the
first argument on Windows; e.g. path("C:", "lib") must be like
path("C:lib"), not path("C:/lib").
- On AIX, shared locking is replaced by exclusive locking on a R/W
filehandle, as locking read handles is not supported
0.043 2013-10-14 06:24:06 America/New_York
[CHANGED]
- Calling 'absolute' on Windows will add the volume if it is missing
(E.g. "/foo" will become "C:/foo"). This matches the behavior
of File::Spec->rel2abs.
[FIXED]
- Fixed t/00-report-prereqs.t for use with older versions of
CPAN::Meta::Requirements
0.042 2013-10-13 11:02:02 America/New_York
[FIXED]
- When 'realpath' can't be resolved (because intermediate directories
don't exist), the exception now explains the error clearly instead of
complaining about path() needing a defined, positive-length argument.
- On Windows, fixed resolution of relative paths with a volume.
E.g. "C:foo" is now correctly translated into getdcwd on "C:"
plus "foo".
0.041 2013-10-11 08:56:31 America/New_York
[FIXES]
- Removes duplicate test dependency on File::Spec that triggers
a CPAN.pm bug
0.040 2013-10-08 22:01:50 America/New_York
[FIXES]
- Fixed broken locking test on *bsd
- When using 'filehandle' to request a locked handle that truncates an
existing file and has a binmode starting with ":unix", this fixes a
bug where pseudo-layers weren't being cleared properly.
0.039 2013-10-08 16:39:23 America/New_York
[ADDITIONS]
- The 'filehandle' method now offers an option to return locked handles
based on the file mode. Input-output methods now rely on this
feature internally. Truncating file modes defer truncation until
after an exclusive lock is acquired.
[FIXES]
- The 'filehandle' method now respects default encoding set by
the caller's open pragma.
0.038 2013-10-01 18:20:05 America/New_York
[ADDITIONS]
- Added 'is_rootdir' method to simplify testing if a path is
the root directory
0.037 2013-09-25 13:00:25 America/New_York
[FIXES]
- Fixed for v5.8
0.036 2013-09-25 09:34:28 America/New_York
[PREREQS]
- No longer lists 'threads' as a prerequisite. If you have a threaded
perl, you have it and if you're not, Path::Tiny doesn't care.
0.035 2013-09-24 07:21:55 America/New_York
[FIXED]
- Fixed flock warning on BSD that was broken with the autodie
removal; now also applies to all BSD flavors
0.034 2013-09-23 16:16:36 America/New_York
[INCOMPATIBLE CHANGE]
- Exceptions are now Path::Tiny::Error objects, not autodie exceptions;
this removes the last dependency on autodie, which allows us to
support Perls as far back as v5.8.1
[FIXED]
- BSD/NFS flock fix was not backwards compatible before v5.14. This
fixes it harder.
[PREREQS]
- dropped autodie
- lowered ExtUtils::MakeMaker configure_requires version to 6.17
0.033 2013-09-12 08:54:30 America/New_York
[FIXED]
- Perl on BSD may not support locking on an NFS filesystem. If this is
detected, Path::Tiny warns and continues in an unsafe mode. The
'flock' warning category may be fatalized to die instead.
[DOCUMENTED]
- Added 'iterator' example showing defaults
0.032 2013-09-06 17:52:48 America/New_York
[PREREQS]
- Removed several test dependencies. Path::Tiny now only needs
core modules, though some must be upgraded on old Perls
0.031 2013-08-27 10:03:57 America/New_York
[FIXED]
- parent() on paths with internal double dots (e.g. /foo..bar.txt) now works
correctly
0.030 2013-08-20 16:10:04 America/New_York
[FIXED]
- t/zzz-spec.t used getcwd() instead of getdcwd(), which breaks
on Windows if the build directory isn't on the 'C' drive
0.029 2013-08-19 11:52:24 America/New_York
[FIXED]
- On Win32, "C:/" no longer is changed to "C:". Also, "C:" is
converted to the absolute path of cwd on the "C:" volume. UNC paths
("//server/share/") now retain their trailing slash to correctly
distinguish volume and directory paths when split
0.028 2013-08-14 13:12:49 America/New_York
[ADDED]
- The 'children()' method now takes an optional regular expression to
filter the results
0.027 2013-07-25 19:38:44 America/New_York
[ADDED]
- Added the 'digest' method to produce a hexadecimal SHA-256
(or user-specified) digest of a file
0.026 2013-07-14 21:25:22 America/New_York
[FIXED]
- Fixed bug where lines() with a count longer than the
file would return undef for the extra lines. Now returns
only the lines in the file if the count is greater than
the number of lines.
0.025 2013-07-10 09:32:13 America/New_York
[FIXED]
- Spew to an existing symlink now atomically replaces
the resolved destination, not the symlink
0.024 2013-06-17 18:12:36 America/New_York
[FIXED]
- Win32 pseudo-forks don't load threads.pm, so we do that
in CLONE to ensure we get the thread ID
0.023 2013-06-12 07:18:31 America/New_York
[FIXED]
- Removing dangling symlinks now works
0.022 2013-05-28 11:57:15 America/New_York
[ADDED]
- The 'touch' method can now take an epoch secs argument
0.021 2013-05-17 22:53:18 America/New_York
[FIXED]
- Fixed fatal bug with lines_utf8 using chomp
[DOCS]
- Pod typos fixed
0.020 2013-04-13 06:58:11 Europe/London
[FIXED]
- More descriptive error message if copy() fails
0.019 2013-04-12 06:58:18 Europe/London
[FIXED]
- Fixed warning about -l on dirhandle in iterator()
0.018 2013-04-08 12:44:31 America/New_York
[ADDED]
- cwd, rootdir, tempfile and tempdir can now be exported on request
and used as functions instead of as methods
[FIXED]
- Fixed regression in lines() where it no longer returned count
of lines in scalar context
0.017 2013-03-28 16:49:15 America/New_York
[ADDED]
- path() constructor now glob-expands tildes (~)
[CHANGED]
- Improved options validation; invalid options now throw errors
0.016 2013-03-26 14:59:36 America/New_York
[ADDED]
- The iterator now has an optional recursive mode
[CHANGED]
- We no longer use autodie directly, but we throw our
own autodie::exceptions on error. This avoids the overhead
of wrapping built-ins with function calls.
- Most dependencies are now loaded on demand, reducing startup
time.
0.015 2013-03-13 13:20:38 America/New_York
[CHANGED]
- touch and touchpath now return the object to allow easy chaining
with spew
0.014 2013-03-09 08:54:26 America/New_York
[ADDED]
- parent now takes an optional argument to look upwards multiple
times in one call. e.g. $path->parent(2)
0.013 2013-02-22 10:58:05 America/New_York
[CHANGED]
- remove_tree now defaults to safe mode and will not attempt to chmod
and remove directories with insufficient permissions
- Temporary files and directories are always created with an
absolute path.
[FIXED]
- Failures from autodie are reported from our caller's location
(as if we called croak()); bumped autodie prereq to 2.14 for
this feature
- Failures from mkpath and remove_tree are now trapped and
thrown as exceptions. (Making an existing path or removing
a non-existant path return false and are not errors);
0.012 2013-02-20 09:34:50 America/New_York
[REMOVED]
- The 'remove' function no longer works on directories. The new
'remove_tree' method should be used instead.
[CHANGED]
- path() now requires a defined, positive-length argument to keep you
safe from subtle bugs in your code that pass an undef or empty
argument to path suddenly having you operating in the current
directory.
[ADDED]
- Added Path::Tiny->cwd as a constructor to give an absolute
path to the current working directory
- Added 'remove_tree' as a method for recursively removing
a directory
0.011 2013-02-19 11:08:44 America/New_York
[CHANGED]
- slurp/spew/etc and openr/openw/etc now respect default layers
set by -C or the open pragma
- spew and append can now be given array references to output
to avoid extra copying
0.010 2013-02-16 10:26:38 America/New_York
[FIXED]
- The 'tempdir' and 'tempfile' methods can now both take either leading
templates or a TEMPLATE option, so you don't have to remember which
one File::Temp wants
0.009 2013-02-15 16:05:39 America/New_York
[CHANGED]
- Dropped use of '//' to allow Path::Tiny to run on Perl 5.008
0.008 2013-02-15 13:49:54 America/New_York
[ADDED]
- Added 'touchpath' method combining 'mkpath' and 'touch'
0.007 2013-02-12 17:41:44 America/New_York
[FIXED]
- Unicode::UTF8 0.58 is necessary for optional faster
Unicode processing
0.006 2013-02-11 13:22:18 America/New_York
[FIXED]
- t/parent.t is amended to work on Windows
- new() now correctly takes multiple path arguments, like path()
0.005 2013-02-07 15:41:32 America/New_York
[FIXED]
- Fixed test for platforms with /sbin symlinked to /usr/sbin
0.004 2013-02-05 19:19:46 America/New_York
[ADDED]
- Added slurp_raw and other *_raw helper methods
- Added realpath method (with thanks to ether)
- Added canonpath method (with thanks to sjmiller)
[FIXED]
- slurp/lines/spew/append now do appropriate flocking
- Fixed test that fails if run as root (bingos)
- Fixed test that fails if cwd/getcwd don't agree
[CHANGED]
- internal optimizations
0.003 2013-01-31 06:59:50 America/New_York
[FIXED]
- lstat was calling the wrong stat [rt.cpan.org #83063]
- make atomic writes thread-safe [rt.cpan.org #83064]
[CHANGED]
- updated bugtracker to point to github
0.002 2013-01-30 22:09:37 America/New_York
[FIXED]
- s/File::Stat/File::stat/; # OMG! I hate case insensitivity
0.001 2013-01-30 19:36:22 America/New_York
- First release
|