첨부 소스 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
import os

def Search(sourceDirectory):

    fileNameList = os.listdir(sourceDirectory)

    for fileName in fileNameList:

        filePath = os.path.join(sourceDirectory, fileName)

        print(filePath)

Search('c:\\')

"""
c:\$Recycle.Bin
c:\$WinREAgent
c:\Config.Msi
c:\Documents and Settings
c:\inetpub
c:\NugetPackages
c:\pagefile.sys
c:\PerfLogs
c:\Program Files
c:\Program Files (x86)
c:\ProgramData
c:\Recovery
c:\swapfile.sys
c:\System Volume Information
c:\Users
c:\Windows
"""
728x90
반응형
그리드형(광고전용)
Posted by icodebroker
TAG , ,

댓글을 달아 주세요