do not try to upload directories
yeesh
Ricardo Signes
7 years ago
0 | 0 |
Revision history for CPAN-Uploader
|
1 | 1 |
|
2 | 2 |
{{$NEXT}}
|
|
3 |
- the cpan-uploader program now skips directories, while the
|
|
4 |
upload_file method throws an exception on non-files; thanks to
|
|
5 |
Vincent Pit for reporting the weird behavior when trying to upload a
|
|
6 |
directory
|
3 | 7 |
|
4 | 8 |
0.103012 2015-12-31 21:41:09-05:00 America/New_York
|
5 | 9 |
- don't chomp undef (Graham Knop)
|
47 | 47 |
|
48 | 48 |
Carp::confess(q{don't supply %arg when calling upload_file on an object})
|
49 | 49 |
if $arg and ref $self;
|
|
50 |
|
|
51 |
Carp::confess(q{attempted to upload a non-file}) unless -f $file;
|
50 | 52 |
|
51 | 53 |
# class call with no args is no good
|
52 | 54 |
Carp::confess(q{need to supply %arg when calling upload_file from the class})
|