Skip to content

Commit

Permalink
wip: doc list files
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Nov 7, 2023
1 parent 8714192 commit d110dc6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Ravada/VM.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2870,6 +2870,14 @@ sub _list_files_remote($self, $dir, $pattern) {
return @list;
}

=head2 list_files
List files in a Virtual Manager
Arguments: dir , optional regexp pattern
=cut

sub list_files($self, $dir, $pattern=undef) {
return $self->_list_files_local($dir, $pattern) if $self->is_local;
return $self->_list_files_remote($dir, $pattern);
Expand Down

0 comments on commit d110dc6

Please sign in to comment.