differentiate between file name and file path
<p>I need to invoke different functionality if we pass file name and file path</p>

<p>ex</p>

<pre><code>python test.py  test1 (invoke different function)         
python test.py  /home/sai/test1 (invoke different function)
</code></pre>

<p>I can get the argument from sys.argv[1]. But I am not able to differentiate into file and filepath.(i.e  is it file or file path)</p>
