summaryrefslogtreecommitdiff
path: root/lib/File
Commit message (Collapse)AuthorAgeFilesLines
* Restore changelog entry removed by 378eedaFather Chrysostomos2011-09-101-1/+6
| | | | | Existence of this entry has nothing to do with Borland support. It is merely history, that’s all.
* The Borland Chainsaw MassacreSteve Hay2011-09-101-6/+1
| | | | | Remove support for the Borland C++ compiler on Win32, as agreed here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2011-09/msg00034.html
* basename: Change C<> to L<>Karl Williamson2011-07-161-2/+2
|
* File::Find pod: fix link issueKarl Williamson2011-06-211-2/+2
|
* Revert "Remove MacOS classic support from File::Basename."Father Chrysostomos2011-04-042-5/+47
| | | | | | This reverts commit e713b73750eb9e684a6d14dcca1a22d55ce2226d. See [perl #87704].
* [perl #85884] Erroneous description of File::Basename::fileparseFather Chrysostomos2011-03-111-3/+3
| | | | Literal backslashes need single quotes.
* Revert "In File::Copy, convert two regexps to explicit ranges, instead of ↵Karl Williamson2011-03-021-3/+3
| | | | | | | using /i" This reverts commit 7b7d8b152c027b50b260244da6f7c17a010279d6. The performance issue that prompted this commit has been fixed.
* In File::Copy, convert two regexps to explicit ranges, instead of using /iNicholas Clark2011-02-041-3/+3
| | | | | | | | | Since change 56ca34cada940c7f moved the folding of ranges from runtime to compile time, these VMS-only regexps would incur a startup cost penalty on all platforms. This also removes build-time warnings when File::Copy is invoked before the Unicode tables have been processed.
* Skip the right number of tests in DosGlob.t.Craig A. Berry2011-01-301-1/+1
| | | | | | Three times three is nine, last I checked. Follow-up to: dd2d1456ae6cdb1b6f476dd4923e18c36a45b6ea
* Version bumps for File:: non-dual-life modules identified byJesse Vincent2011-01-202-2/+2
| | | | ./perl -Ilib Porting/cmpVERSION.pl -xd . v5.13.8
* Convert DosGlob.t to Test::More.Nicholas Clark2011-01-181-58/+27
|
* Remove Mac OS Classic code from DosGlob.tNicholas Clark2011-01-181-75/+27
|
* Remove MacOS Classic code from File::Find's tests.Nicholas Clark2011-01-182-147/+49
|
* Remove Mac OS Classic docs from DirHandle and File::{Copy,DosGlob,Find}Nicholas Clark2011-01-183-378/+3
| | | | | | | The documentation for the different behaviour on Mac OS Classic was not removed when the relevant code was removed in 862f843bac3434c2. That commit also remove all callers to several Mac OS classic support functions, but not the functions themselves. Rectify this.
* Fix typos (spelling errors) in lib/*Peter J. Acklam) (via RT2011-01-075-6/+6
| | | | | | | | | # New Ticket Created by (Peter J. Acklam) # Please include the string: [perl #81890] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=81890 > Signed-off-by: Abigail <abigail@abigail.be>
* Dual-life File::CheckTreeFlorian Ragwitz2010-12-112-428/+0
|
* Increase File::stat’s versionFather Chrysostomos2010-11-111-1/+1
|
* RT 79076: fix File::stat overload tests -x and -X when uid is rootTodd Rinaldo2010-11-112-3/+20
|
* File::CheckTree.t: @INC should be change for chdirKarl Williamson2010-10-281-11/+5
| | | | | | | | | This test has a workaround for windows that isn't needed if it just sets up the @INC initially to allow for finding things both before and after the chdir. And, it's unreasonable to expect that nothing it calls would in turn never do their own module load, so the @INC needs to be correct anyway.
* Don't assume filenames can contain parenthesesCraig A. Berry2010-10-101-19/+25
| | | | | in the new File::DosGlob tests that came in with 2f3c8ce922663caa9b02d9fddae7536225b6f95d.
* The rest of [perl #71710] fixes for File::FindAlex Davies2010-09-241-3/+7
| | | | | | | | | | | | The code is from Alex Davies. The commit message is from the committer. Somehow I only ended up with half the patch applied. No tests failed for me, because these code paths are only reached on Windows, which, thankfully, I am not using. Hopefully this will eliminate the smoke that is already pouring in.... (It’s *my* turn to break blead for Windows. :-)
* [perl #71712] fixes for File::DosGlobAlex Davies2010-09-232-3/+51
| | | | | | | The changes are 1. Allow for parentheses in glob pattern. 2. Strip redundant "./" from drive relative glob patterns results.
* [perl #71710] fixes for File::FindAlex Davies2010-09-232-9/+73
| | | | | | | | Please find attached patches for File::Find and its test file. These changes ensure that paths passed to File::Find::find() on Win32 which have a trailing *back*slash are neatly handled. That is, the change ensures paths such as c:\dir\/file are no longer generated.
* make sure perl doesn't touch stat.t between statsTony Cook2010-09-221-3/+13
| | | | | | | | | | | | | | | | ebcfa0534 changed stat.t to avoid using TEST as the stat target, since it is read by other test scripts. But with the initial stat() in the BEGIN block perl is still reading the script for compilation, which will update the access time. Since the system clock usually didn't tick another second between the first and second stats, the test usually succeeded, but occasionally the clock would tick, and the test would fail. Moved the stat() out of the BEGIN block to avoid that. As a check I temporarily added a 2 second sleep after the initial stat to ensure we didn't have a similar problem to that will allowed this to pass most of the time.
* compare stat results on a file that isn't touched elsewhereTony Cook2010-09-211-1/+1
| | | | | | lib/File/stat.t compares two stat calls on t/TEST against each other, but other tests read t/TEST, modifying its access time, causing rare random failures in stat.t in parallel tests.
* Bump module version numbersDavid Golden2010-07-192-2/+2
|
* Skip suid File::Copy tests on a nosuid partitionÆvar Arnfjörð Bjarmason2010-07-031-3/+10
| | | | | | | | These tests were being skipped on OpenBSD, but nosuid partitions can exist on other systems too. Now it just checks if it can create a suid directory, if not the tests are skipped. Perl builds without errors in a nosuid /tmp with this patch.
* Remove MacOS classic support from File::{Copy,DosGlob,Find,Glob,stat}.Nicholas Clark2010-06-234-236/+47
| | | | | ExtUtils::MakeMaker removed MacOS support in 6.25, merged to blead in December 2004, so this code is vestigial, and a small runtime penalty.
* Remove MacOS classic support from File::Basename.Nicholas Clark2010-06-232-47/+5
| | | | | ExtUtils::MakeMaker removed MacOS support in 6.25, merged to blead in December 2004, so this code is vestigial, and a small runtime penalty.
* version bump for File::Copy and add change to deltaMatt S Trout2010-06-211-1/+1
|
* Resolve issue #74974: document File::Copy::copy(FILE, DIR)Abigail2010-06-081-0/+6
|
* bumped File::Find version to 1.16David Golden2010-05-191-1/+1
|
* Fixed typo: "effecting data" -> "affecting data".Dan Dascalescu2010-05-191-1/+1
|
* Spaces in filenames require non-default settings on VMS.Craig A. Berry2010-03-281-1/+3
| | | | | Specifically DECC$EFS_CHARSET must be enabled and not everything plays nice with that, so for now this is a to-do.
* remove tmp debugging from File/Copy.tDavid Mitchell2010-03-281-1/+0
|
* RT #73714: Regression in 5.12: File::Copy and initial spacesDavid Mitchell2010-03-272-4/+14
| | | | | | | | | Commit 81ec4fbc8320b72171c9fbea0fa0456b3a687f92 removed some obsolete code that processed with leading spaces in filenames (not needed with 3-arg open), but didn't quite clean out everything. This meant that trying to copy to a file whose name had a leading space would unceremoniously die with Undefined subroutine &File::Copy::_protect called
* bump versions for core libs changed since 5.11.3Ricardo Signes2010-01-191-1/+1
|
* [perl #72098] File::Copy stripping 06000 perms on cp for rootTodd Rinaldo2010-01-161-6/+2
| | | | | | | | | | | | | | | | | | | The problem is with the use of cp when perms & 06000. There is logic that checks to see if the target file is owned by the user ($>) running the copy and/or if $> is a member of the group that owns the target file. If this is not the case, then the 06000 bits are masked out before the chmod is called after the copy. This is mostly good logic except when root is executing this, in which case root should get to do whatever it wants to do. Looking closer at the code to test for group membership, I think it can be more easily and more cheaply be written using $). I've added this change to the patch. This will also fix the problem where someone has a group membership based on /etc/passwd and is not mentioned in /etc/group.
* Bumped File::Find's version since it's changed since 5.11.2Jesse Vincent2009-12-201-1/+1
|
* Update File::Copy tests to skip on OpenBSD, as it mounts too many ↵Jesse Vincent2009-12-151-0/+3
| | | | | | filesystems nosuid. [perl #71334] is the TODO for a better fix for this
* Update countAbigail2009-11-201-1/+1
|
* Fix bug #68260Abigail2009-11-202-2/+39
| | | | | | File::Find was not resolving paths of the form "/..////../" correctly. Fixed by adding a quantifier to the substitution parameter in contract_name().
* Convert File/CheckTree.t from Test to Test::More.Nicholas Clark2009-10-231-72/+27
|
* Reuinte File::Spec with the rest of the PathTools distribution in ext.Nicholas Clark2009-09-1914-4983/+0
| | | | | | | | | | It can't really be renamed from ext/Cwd to ext/PathTools, because Configure and Makefile.SH need to know the name of the shared object produced, and they infer this from the name of the directory. This concludes the migration of modules from lib to ext. Exporter and version remain in lib, but I don't think that there is any benefit in trying to move either of them.
* Untangle File::Basename and re - avoid hard-coding the hints value.Nicholas Clark2009-09-121-6/+6
|
* Move File-Path from lib/ to ext/Chris Williams2009-09-112-1483/+0
|
* Move File::Temp from lib/ to ext/Chris Williams2009-09-1110-3284/+0
|
* Move File::Fetch from lib to extChris 'BinGOs' Williams2009-09-022-1635/+0
|
* Pre-resolve symlink for File::Stat test under -DmksymlinksJosh ben Jore2009-07-311-6/+19
|
* Fix File::Copy::copy with pipes on GNU/kFreeBSDNiko Tyni2009-07-222-3/+16
| | | | | | | | | | Quoting Petr Salinger in http://bugs.debian.org/537555: The Copy tries to detect whether source and dest are the same files. Unfortunately, on the GNU/kFreeBSD the kernel returns for all pipes as device and inode numbers just zero. See pipe_stat() in http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sys_pipe.c Patch by Petr Salinger, tests by Niko Tyni.