Commits

Anonymous committed 7d29269

Renamed _NEW_current_path to _current_path now that we're done refactoring it.

  • Participants
  • Parent commits fa443f4

Comments (0)

Files changed (1)

lib/File/Find/Object.pm

     return ($self->_current_idx() < 0);
 }
 
-sub _NEW_current_path
+sub _current_path
 {
     my $self = shift;
 
     while (1) {
         if ($self->_process_current())
         {
-            return $self->item($self->_NEW_current_path());
+            return $self->item($self->_current_path());
         }
         if(!$self->_movenext) {
             if ($self->_me_die())
     my $self = shift;
 
     if ($self->callback()) {
-        $self->callback()->($self->_NEW_current_path());
+        $self->callback()->($self->_current_path());
     }
 
     return 1;
     my $self = shift;
 
     return defined($self->filter()) ?
-        $self->filter()->($self->_NEW_current_path()) :
+        $self->filter()->($self->_current_path()) :
         1;
 }
 
 
     # If current is not a directory always return 0, because we may
     # be asked to traverse single-files.
-    my @st = stat($self->_NEW_current_path());
+    my @st = stat($self->_current_path());
     if (!-d _)
     {
         return 0;
 
     my $current = $self->_current();
 
-    if (-l $self->_NEW_current_path() && !$self->followlink())
+    if (-l $self->_current_path() && !$self->followlink())
     {
         return 0;
     }
     }
     if ($rc) {
         printf(STDERR "Avoid loop " . $self->_father($ptr)->_dir_as_string . " => %s\n",
-            $self->_NEW_current_path());
+            $self->_current_path());
         return 0;
     }
     return 1;