Skip to content

Commit

Permalink
Apply regex-inclusion to directory upload as well; Increase the versi…
Browse files Browse the repository at this point in the history
…on number for the first time
  • Loading branch information
houtianze committed Dec 13, 2014
1 parent 4d26c4a commit 8b901ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions bypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,12 @@ def __mkdir_act(self, r, args):
return ENoError

def __mkdir(self, rpath, **kwargs):
# TODO: this is a quick patch
# the code still works because Baidu Yun doesn't require
# parent directory to exist remotely to upload / create a file
if not self.__shallinclude('.', rpath, True):
return ENoError

self.pd("Making remote directory '{}'".format(rpath))

pars = {
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='bypy',
version='1.0',
version='1.0.1',
description='Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端',
author='Hou Tianze',
author_email='[email protected]',
Expand Down

0 comments on commit 8b901ea

Please sign in to comment.