os.path.exists()

Returns True, if a file exists.

>>> import os
>>> os.path.exists( '/online_dir')
True