Nick_Reardon
July 7th, 2014, 07:21 PM
I've been searching how to enumerate files from a network directory for a couple hours now with no luck. I need to be able to do this with Python for an application that I am working on. PLEASE HELP!
Methods tried so far-
import os
>>> print os.path.splitext
from os import listdir
>>> from os.path import isfile, join
>>> onlyfiles = [f for f in listdir("smb:///dw_fileserver/") if isfile(join("smb:///dw_fileserver/", f))]
os.walk("smb:///dw_fileserver/")
Methods tried so far-
import os
>>> print os.path.splitext
from os import listdir
>>> from os.path import isfile, join
>>> onlyfiles = [f for f in listdir("smb:///dw_fileserver/") if isfile(join("smb:///dw_fileserver/", f))]
os.walk("smb:///dw_fileserver/")