Skip to content

Commit

Permalink
Feature: permit process remote items
Browse files Browse the repository at this point in the history
  • Loading branch information
cfgnunes committed Apr 14, 2024
1 parent 60665e8 commit 67fef95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@ _get_files() {
fi
fi

# If the items are in a remote server, translate the addresses to 'gvfs'.
if [[ "$input_files" == *"://"* ]]; then
input_files=$(sed "s|\(\w*\)://|/run/user/$UID/gvfs/\1:host=|g" <<<"$input_files")
fi

# Pre-select the input files. Also, expand it (if 'par_recursive' is true).
input_files=$(_validate_file_preselect \
"$input_files" \
Expand Down

0 comments on commit 67fef95

Please sign in to comment.