The following command will do, if you know exactly where the file is located ssh user@remote_server test -f /path/to/file/filename && echo "YES" || echo "no".
python-check-if-file-exists-on-remote-server
Module providing easy API for working with remote files and folders. ... The test for whether text already exists defaults to a full line match, e.g. ^$ , as this ... Return True if remote SSH server is running Windows, False otherwise. ... filename should be the path to a text file, which may contain Python string interpolation ... 939c2ea5af
python check if file exists on remote server, python check if file exists remote server
Comments