I want to check for the presence of files in a directory...
Can anyone tell me what I am doing wrong here?
Code:#!/usr/bin/python import os, time, shutil, sys work_path = '/home/chris/test/' if os.listdir(work_path)=="": print "yes" else: print "No"
Bookmarks