Skip to content

Commit

Permalink
Bump to 2.2.4.2 (#36)
Browse files Browse the repository at this point in the history
Remove any number of trailing '/' from zip dir spec
  • Loading branch information
rudolphpienaar committed Jul 20, 2020
1 parent c93a507 commit bd3eb94
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
@@ -1,5 +1,5 @@
##################
pfurl - v2.2.4.0
pfurl - v2.2.4.2
##################

.. image:: https://badge.fury.io/py/pfurl.svg
Expand Down
2 changes: 1 addition & 1 deletion bin/pfurl
Expand Up @@ -24,7 +24,7 @@ str_defIP = [l for l in ([ip for ip in socket.gethostbyname_ex(socket.gethostn
str_defPort = '5055'

str_name = 'pfurl'
str_version = "2.2.4.0"
str_version = "2.2.4.2"
str_desc = Colors.CYAN + """
__ _
Expand Down
5 changes: 3 additions & 2 deletions pfurl/pfurl.py
Expand Up @@ -1171,8 +1171,9 @@ def zip_perform():
# Here we append a trailing '/' to the dirname so that the zip
# operation zips the contents and not the parent dir. Note though
# that we should only append the '/' if it is not already present!
if str_localPath[-1] != '/':
str_dirSuffix = '/'
while str_localPath[-1] == '/':
str_localPath = str_localPath[0:-1]
str_dirSuffix = '/'
else:
self.dp.qprint("target is a file", level = 1, comms ='status')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -12,7 +12,7 @@ def readme():

setup(
name = 'pfurl',
version = '2.2.4.0',
version = '2.2.4.2',
description = '(Python) Path-File URL comms',
long_description = readme(),
author = 'Rudolph Pienaar',
Expand Down

0 comments on commit bd3eb94

Please sign in to comment.