1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/documentation/faq/how-can-i-check-for-existing-remote-file/index.markdown
Thomas Kriechbaumer 69e1f62684 overhaul navigation
restructure plugins and framework extensions
2015-01-18 15:08:04 +00:00

258 B

title layout
How can I check for existing remote file? default

The test method is best used for file checking with bash conditionals

{% highlight ruby %} if test("[ -f /tmp/foo ]") # do stuff end {% endhighlight %}