This file contains hidden or 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 flask import Flask,send_from_directory | |
import os | |
UPLOAD_FOLDER = os.getcwd() | |
application = app = Flask(__name__) | |
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER | |
@app.route('/snapshots/trunk/ar71xx/packages/') |
This file contains hidden or 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
#!/usr/bin/env python2 | |
#-*- coding: utf-8 -*- | |
import os | |
import re | |
import shutil | |
SOURCEDIR = "/home/hiro/source/" | |
DESTDIR = "/home/hiro/outputdir/" |
This file contains hidden or 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
#!/usr/bin/env python3 | |
#*# coding=utf-8 #*# | |
''' | |
使用函数os.dirlist()读取文件夹内的文件名字 | |
2015.08.06 | |
''' | |
from os import listdir, path, remove, getcwd | |
import subprocess | |
import sys |