Process a set of files from a source directory to a destination directory in Python과 동일한 맥락에서 웹 디렉토리가 주어지면 나열 할 수있는 함수를 만들 수 있는지 궁금합니다. 상기 디렉토리 내의 파일들. 뭔가 같은 ...웹에서 디렉토리를 반복하고 파이썬을 통해 내용 (파일 및 기타 디렉토리)을 표시
files[]
for file in urllib.listdir(dir):
if file.isdir:
# handle this as directory
else:
# handle as file
나는 내가 URLLIB 라이브러리를 사용해야 가정,하지만 난 적어도 보았으므로,이 일을하는 쉬운 방법이있을 것 같지 않습니다.