def get_path_dir_files(dirName, nzbName, proc_type):
 path = u''
 dirs = []
 files = []
 if (((dirName == sickbeard.TV_DOWNLOAD_DIR) and (not nzbName)) or (proc_type == u'manual')):
  for (path, dirs, files) in ek(os.walk, dirName):
   break
 else:
  (path, dirs) = ek(os.path.split, dirName)
  if ((not ((nzbName is None) or nzbName.endswith(u'.nzb'))) and ek(os.path.isfile, ek(os.path.join, dirName, nzbName))):
   dirs = []
   files = [ek(os.path.join, dirName, nzbName)]
  else:
   dirs = [dirs]
   files = []
 return (path, dirs, files)

def get_path_dir_files ( dirName , nzbName , proc_type ) : path = u'' dirs = [ ] files = [ ] if ( ( ( dirName == sickbeard . TV_DOWNLOAD_DIR ) and ( not nzbName ) ) or ( proc_type == u'manual' ) ) : for ( path , dirs , files ) in ek ( os . walk , dirName ) : break else : ( path , dirs ) = ek ( os . path . split , dirName ) if ( ( not ( ( nzbName is None ) or nzbName . endswith ( u'.nzb' ) ) ) and ek ( os . path . isfile , ek ( os . path . join , dirName , nzbName ) ) ) : dirs = [ ] files = [ ek ( os . path . join , dirName , nzbName ) ] else : dirs = [ dirs ] files = [ ] return ( path , dirs , files )
get files in a path .