Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get file arg0 python

import os
import sys

fn = sys.argv[1]
if os.path.exists(fn):
    print os.path.basename(fn)
    # file exists
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #python
ADD COMMENT
Topic
Name
9+2 =