フルパスからディレクトリ名とファイル名を取得

>> os.path.split('/path/to/test1.txt')

('/path/to', 'test1.txt')

>> (path,file)=os.path.split('/path/to/test1.txt')