Skip Menu |

This queue is for tickets about the Net-xFTP CPAN distribution.

Report information
The Basics
Id: 47870
Status: resolved
Priority: 0/
Queue: Net-xFTP

People
Owner: turnerjw784 [...] yahoo.com
Requestors: Matz.Rob [...] mbsinsight.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: feature request
Date: Tue, 14 Jul 2009 09:11:49 -0400
To: <bug-net-xftp [...] rt.cpan.org>
From: "Matz.Rob" <Matz.Rob [...] mbsinsight.com>
Download image001.gif
image/gif 1.7k
image001.gif
I have been manually updating the module with a mdtm (modtime) function so that I may use the same coding for ftp and sftp. Would you please be able to incorporate that feature into new releases? Rob Matz UNIX Administrator 570 South Research Place Central Islip, NY 11722 Ph: 631.851.5136 Fax: 631.851.1338 Matz.Rob@mbsinsight.com
Do you know a way to do this in Net::SFTP? If so, plz let me know. Just looking at it, I don't see how to do it. The idea of this module is to include functions / capabilities common to both Net::FTP and Net::SFTP. Regards, Jim On Tue Jul 14 09:11:07 2009, Matz.Rob@mbsinsight.com wrote: Show quoted text
> I have been manually updating the module with a mdtm (modtime) function > so that I may use the same coding for ftp and sftp. Would you please be > able to incorporate that feature into new releases? > > > > Rob Matz > > UNIX Administrator > > > > > > 570 South Research Place > > Central Islip, NY 11722 > > Ph: 631.851.5136 > > Fax: 631.851.1338 > > Matz.Rob@mbsinsight.com > > > > >
Subject: RE: [rt.cpan.org #47870] feature request
Date: Tue, 8 Sep 2009 11:15:42 -0400
To: <bug-Net-xFTP [...] rt.cpan.org>
From: "Matz.Rob" <Matz.Rob [...] mbsinsight.com>
Here is the mdtm component I added for 0.17 which works for NET::SFTP 0.10 sub mdtm { my $self = shift; my $path = shift; my $ok; if ($self->{pkg} =~ /Net::FTP/o && $haveFTP) { return $self->{xftp}->mdtm($path); } elsif ($self->{pkg} =~ /Net::SFTP/o && $haveSFTP) { $path = $self->{cwd} . '/' . $path unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o); eval { $ok = $self->{xftp}->do_stat($path) }; unless (defined($ok) && $ok) { $self->{xftp_lastmsg} = $@; return undef; } return $ok->mtime(); } elsif (!$self->{pkg}) { $path = $self->{cwd} . '/' . $path unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o); eval { (undef, undef, undef, undef, undef, undef, undef, $ok) = stat($path) }; return $@ ? undef : $ok; } return; } Show quoted text
-----Original Message----- From: Jim Turner via RT [mailto:bug-Net-xFTP@rt.cpan.org] Sent: Monday, September 07, 2009 8:09 PM To: Matz.Rob Subject: [rt.cpan.org #47870] feature request <URL: https://rt.cpan.org/Ticket/Display.html?id=47870 > Do you know a way to do this in Net::SFTP? If so, plz let me know. Just looking at it, I don't see how to do it. The idea of this module is to include functions / capabilities common to both Net::FTP and Net::SFTP. Regards, Jim On Tue Jul 14 09:11:07 2009, Matz.Rob@mbsinsight.com wrote:
> I have been manually updating the module with a mdtm (modtime)
function
> so that I may use the same coding for ftp and sftp. Would you please
be
> able to incorporate that feature into new releases? > > > > Rob Matz > > UNIX Administrator > > > > > > 570 South Research Place > > Central Islip, NY 11722 > > Ph: 631.851.5136 > > Fax: 631.851.1338 > > Matz.Rob@mbsinsight.com > > > > >
Subject: RE: [rt.cpan.org #47870] feature request
Date: Wed, 9 Sep 2009 11:54:54 -0700 (PDT)
To: bug-Net-xFTP [...] rt.cpan.org
From: Jim Turner <turnerjw784 [...] yahoo.com>
Thanks alot for the patch!  I have integrated it into Net::xFTP along with similar functionality for Net::SSH2::SFTP and local files.  Also fixed a couple of minor bugs with the size() and ls() fns!  (See Changes).  The new version (v0.21 is now available on my website (http://home.mesh.net/turnerjw/jim/).  Please review, then I'll post it to CPAN. Thanks again for your support of Net::xFTP! Jim Turner --- On Tue, 9/8/09, Matz.Rob via RT <bug-Net-xFTP@rt.cpan.org> wrote: From: Matz.Rob via RT <bug-Net-xFTP@rt.cpan.org> Subject: RE: [rt.cpan.org #47870] feature request To: Date: Tuesday, September 8, 2009, 10:14 AM        Queue: Net-xFTP Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47870 > Here is the mdtm component I added for 0.17 which works for NET::SFTP 0.10 sub mdtm {     my $self = shift;     my $path = shift;     my $ok;     if ($self->{pkg} =~ /Net::FTP/o && $haveFTP)     {         return $self->{xftp}->mdtm($path);     }     elsif ($self->{pkg} =~ /Net::SFTP/o && $haveSFTP)     {         $path = $self->{cwd} . '/' . $path  unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o);         eval { $ok = $self->{xftp}->do_stat($path) };         unless (defined($ok) && $ok)         {             $self->{xftp_lastmsg} = $@;             return undef;         }         return $ok->mtime();     }     elsif (!$self->{pkg})     {         $path = $self->{cwd} . '/' . $path  unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o);         eval { (undef, undef, undef, undef, undef, undef, undef, $ok) = stat($path) };         return $@ ? undef : $ok;     }     return; } Show quoted text
-----Original Message----- From: Jim Turner via RT [mailto:bug-Net-xFTP@rt.cpan.org] Sent: Monday, September 07, 2009 8:09 PM To: Matz.Rob Subject: [rt.cpan.org #47870] feature request <URL: https://rt.cpan.org/Ticket/Display.html?id=47870 > Do you know a way to do this in Net::SFTP?  If so, plz let me know. Just looking at it, I don't see how to do it.  The idea of this module is to include functions / capabilities common to both Net::FTP and Net::SFTP. Regards, Jim On Tue Jul 14 09:11:07 2009, Matz.Rob@mbsinsight.com wrote:
> I have been manually updating the module with a mdtm (modtime)
function
> so that I may use the same coding for ftp and sftp. Would you please
be
> able to incorporate that feature into new releases? > >  > > Rob Matz > > UNIX Administrator > >                                        > >                              > > 570 South Research Place > > Central Islip, NY 11722 > > Ph: 631.851.5136 > > Fax: 631.851.1338 > > Matz.Rob@mbsinsight.com > >  > >  >
Subject: RE: [rt.cpan.org #47870] feature request
Date: Wed, 16 Sep 2009 15:48:29 -0400
To: <bug-Net-xFTP [...] rt.cpan.org>
From: "Matz.Rob" <Matz.Rob [...] mbsinsight.com>
As I have been involved in another project, I had not been able to review the product yet. I hope to do so by weeks end. Show quoted text
-----Original Message----- From: Jim Turner via RT [mailto:bug-Net-xFTP@rt.cpan.org] Sent: Wednesday, September 09, 2009 2:55 PM To: Matz.Rob Subject: RE: [rt.cpan.org #47870] feature request <URL: http://rt.cpan.org/Ticket/Display.html?id=47870 > Thanks alot for the patch!  I have integrated it into Net::xFTP along with similar functionality for Net::SSH2::SFTP and local files.  Also fixed a couple of minor bugs with the size() and ls() fns!  (See Changes).  The new version (v0.21 is now available on my website (http://home.mesh.net/turnerjw/jim/).  Please review, then I'll post it to CPAN. Thanks again for your support of Net::xFTP! Jim Turner --- On Tue, 9/8/09, Matz.Rob via RT <bug-Net-xFTP@rt.cpan.org> wrote: From: Matz.Rob via RT <bug-Net-xFTP@rt.cpan.org> Subject: RE: [rt.cpan.org #47870] feature request To: Date: Tuesday, September 8, 2009, 10:14 AM        Queue: Net-xFTP Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=47870 > Here is the mdtm component I added for 0.17 which works for NET::SFTP 0.10 sub mdtm {     my $self = shift;     my $path = shift;     my $ok;     if ($self->{pkg} =~ /Net::FTP/o && $haveFTP)     {         return $self->{xftp}->mdtm($path);     }     elsif ($self->{pkg} =~ /Net::SFTP/o && $haveSFTP)     {         $path = $self->{cwd} . '/' . $path  unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o);         eval { $ok = $self->{xftp}->do_stat($path) };         unless (defined($ok) && $ok)         {             $self->{xftp_lastmsg} = $@;             return undef;         }         return $ok->mtime();     }     elsif (!$self->{pkg})     {         $path = $self->{cwd} . '/' . $path  unless ($path =~ m#^(?:[a-zA-Z]\:|\/)#o);         eval { (undef, undef, undef, undef, undef, undef, undef, $ok) = stat($path) };         return $@ ? undef : $ok;     }     return; }
-----Original Message----- From: Jim Turner via RT [mailto:bug-Net-xFTP@rt.cpan.org] Sent: Monday, September 07, 2009 8:09 PM To: Matz.Rob Subject: [rt.cpan.org #47870] feature request <URL: https://rt.cpan.org/Ticket/Display.html?id=47870 > Do you know a way to do this in Net::SFTP?  If so, plz let me know. Just looking at it, I don't see how to do it.  The idea of this module is to include functions / capabilities common to both Net::FTP and Net::SFTP. Regards, Jim On Tue Jul 14 09:11:07 2009, Matz.Rob@mbsinsight.com wrote:
> I have been manually updating the module with a mdtm (modtime)
function
> so that I may use the same coding for ftp and sftp. Would you please
be
> able to incorporate that feature into new releases? > >  > > Rob Matz > > UNIX Administrator > >                                        > >                              > > 570 South Research Place > > Central Islip, NY 11722 > > Ph: 631.851.5136 > > Fax: 631.851.1338 > > Matz.Rob@mbsinsight.com > >  > >  >
Btw, I'm working on a major redo of the whole module - I've decided to "modularize" it into a separate module file for each ftp protocol supported (thus removing all the "IF-THEN-ELSIF-ELSE" stuff and making it much more readable and easier to add support for new protocols. I'm also putting the finishing touches on several new protocols: Net::SFTP::Foreign, Net::OpenSSH, and Net::FSP! You'll be the 1st to know when it's released. Thanks again for your support! Regards, Jim On Wed Sep 16 15:47:37 2009, Matz.Rob@mbsinsight.com wrote: Show quoted text
> As I have been involved in another project, I had not been able to > review the product yet. I hope to do so by weeks end. >
New Net::xFTP version 0.3b1 is hereby released on my website (http://home.mesh.net/turnerjw/jim/) and making it's way around CPAN. It officially adds support for Net::SFTP::Foreign, Net::OpenSSH, and Net::FSP. It includes resolution of this ticket. A new version of the ptkftp gui that uses Net::xFTP is also released as previous versions are incompatable with Net::xFTP v0.3*. Jim
I'm marking this resolved (see my prev. case response), due to lack of response from requestor(s). Jim Turner