Skip to content

Commit

Permalink
Unshift, not push.
Browse files Browse the repository at this point in the history
  • Loading branch information
yoe committed Feb 1, 2025
1 parent 270d026 commit 0266f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SReview/Files/Collection/SFTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sub store_file {
my $dir = dirname($self->onhost_pathname);
my @dirs;
while(!$self->sftpobject->stat($dir)) {
push @dirs, $dir;
unshift @dirs, $dir;
$dir = dirname($dir);
}
foreach $dir(@dirs) {
Expand Down

0 comments on commit 0266f6b

Please sign in to comment.