2016年3月15日 星期二

python-check there is a existing file in a folder

import os
bIsExist = os.path.exists(file_path)

if there is a file with same path, then bIsExist is True.


沒有留言:

張貼留言