forked from seba/servefile
Merge branch 'master' into putfile
This commit is contained in:
commit
a34c2bc5b8
|
@ -5,7 +5,7 @@
|
|||
# Written by Sebastian Lohff (seba@seba-geek.de)
|
||||
# http://seba-geek.de/stuff/servefile/
|
||||
|
||||
__version__ = '0.3.1'
|
||||
__version__ = '0.3.2'
|
||||
|
||||
import argparse
|
||||
import BaseHTTPServer
|
||||
|
@ -114,7 +114,7 @@ def main():
|
|||
try:
|
||||
testit = open(args.filename, 'r')
|
||||
testit.close()
|
||||
FileHandler.filePath = sys.argv[1]
|
||||
FileHandler.filePath = args.filename
|
||||
FileHandler.fileName = os.path.basename(args.filename)
|
||||
FileHandler.fileLength = os.stat(args.filename)[ST_SIZE]
|
||||
except IOError:
|
||||
|
|
6
setup.py
6
setup.py
|
@ -4,10 +4,10 @@ from distutils.core import setup
|
|||
|
||||
setup(
|
||||
name='servefile',
|
||||
description='Script to serve files via a small HTTP server',
|
||||
long_description='Script to serve files via a small HTTP server. The server redirects all http requests to the file, so only IP and port must be given to another user to access the file.',
|
||||
description='Serve files from shell via a small HTTP server',
|
||||
long_description='Serve files from shell via a small HTTP server. The server redirects all HTTP requests to the file, so only IP and port must be given to another user to access the file. Its main purpose is to quickly send a file to users in your local network, independent of their current setup (OS/software).',
|
||||
platforms='posix',
|
||||
version='0.3.1',
|
||||
version='0.3.2',
|
||||
license='GPLv3 or later',
|
||||
url='http://seba-geek.de/stuff/servefile/',
|
||||
author='Sebastian Lohff',
|
||||
|
|
Loading…
Reference in New Issue