Skip to content

Commit

Permalink
Chinese charactor support
Browse files Browse the repository at this point in the history
  • Loading branch information
petronny committed Nov 23, 2017
1 parent 52a34b1 commit 220f7c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nutstore_cli/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import easywebdav

from six.moves.urllib.parse import unquote

class BaseNutStoreClient(object):
"""坚果云"""
Expand Down Expand Up @@ -49,6 +50,7 @@ def download(self, remote_path, local_path=None):

def ls(self):
def file_in_dir(filename, directory):
filename=unquote(filename)
return (directory in filename) and (filename != directory)

real_path = self.np.real
Expand Down

0 comments on commit 220f7c6

Please sign in to comment.