Created
June 3, 2020 11:06
-
-
Save MishraKhushbu/63a3e958c9ea97e8866993a6ee6742e4 to your computer and use it in GitHub Desktop.
Web Page To Display Directory Structure in sha format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bottle import * | |
import os | |
import File_Folder_Flask | |
# Server startup message | |
@route("/", methods=['POST', 'GET']) | |
def home(): | |
return ( | |
"Welcome! To the homepage") | |
@route("/<path:path>", methods=['POST', 'GET']) | |
def getProviderRoute(path): | |
print(path) | |
my_output = File_Folder_Flask.folder_walk("/"+ path) | |
return my_output | |
run(host='localhost', port=8080) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment