1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/docs/documentation/faq/how-can-i-check-for-existing-remote-file/index.markdown
2016-08-23 18:04:57 -07:00

13 lines
230 B
Markdown

---
title: How can I check for existing remote file?
layout: default
---
The `test` method is best used for file checking with bash conditionals
```ruby
if test("[ -f /tmp/foo ]")
# do stuff
end
```