Skip to content

Instantly share code, notes, and snippets.

@MishraKhushbu
Created June 3, 2020 11:06
Show Gist options
  • Save MishraKhushbu/63a3e958c9ea97e8866993a6ee6742e4 to your computer and use it in GitHub Desktop.
Save MishraKhushbu/63a3e958c9ea97e8866993a6ee6742e4 to your computer and use it in GitHub Desktop.
Web Page To Display Directory Structure in sha format
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