User Tools

Site Tools


python_directory_search

This is an old revision of the document!


import os

config_files=[]
webserver_config="/etc/httpd/conf.d/"

for root, dirs, files in os.walk(webserver_config):
    for file in files:
        if file.endswith(".conf"):
             config_files.append(os.path.join(root, file))

python_directory_search.1486032984.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki