diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 2317902..c642634 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,4 +1,13 @@ -# Version 0.6.5 +# Version 0.6.6 + ## Client-side Changes: + * Nothing to notice + ## Server-side Changes: + * Nothing to notice + ## Fixes: + * Added requests in requirements + + +# Version 0.6.6 ## Client-side Changes: * Nothing to notice ## Server-side Changes: diff --git a/VERSION b/VERSION index 05e8a45..2228cad 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.6 +0.6.7 diff --git a/dev_src/pyroboxCore.py b/dev_src/pyroboxCore.py index 3a7fabe..f6e031b 100644 --- a/dev_src/pyroboxCore.py +++ b/dev_src/pyroboxCore.py @@ -1197,6 +1197,16 @@ def return_file(self, path, filename=None, download=False): # if f and not f.closed(): f.close() raise + + def send_file(self, path, filename=None, download=False): + '''sends the head and file to client''' + f = self.return_file(path, filename, download) + if self.command == "HEAD": + return # to avoid sending file on get request + try: + self.copyfile(f, self.wfile) + finally: + f.close() diff --git a/setup.cfg b/setup.cfg index 9c0563f..0c32ece 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = pyrobox -version = 0.6.6 +version = 0.6.7 authors = Rasan author_email= wwwqweasd147@gmail.com description = Personal DropBox for Private Network diff --git a/setup.py b/setup.py index 5715604..0ae38c4 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,8 @@ package_dir={"pyrobox": "src",}, install_requires=[ 'natsort', - "send2trash" + "send2trash", + "requests", ], entry_points=''' [console_scripts]