Skip to content

Commit 62e0163

Browse files
committed
fix for nested dir names
1 parent f30887c commit 62e0163

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [Unreleased]
8+
9+
### Fixed
10+
11+
- Issue with duplicate nested directory names
12+
13+
### Changed
14+
15+
- Relaxed Boto requirement
716

817
## [0.1.2] - 2017-08-29
918

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ release: readme
88

99
.PHONY: test
1010
test:
11-
nosetests --with-coverage --cover-erase --cover-package=fs_s3fs -a "!slow" fs_s3fs/tests
11+
nosetests --with-coverage --cover-erase --logging-level=ERROR --cover-package=fs_s3fs -a "!slow" fs_s3fs/tests
1212
rm .coverage
1313

1414
.PHONY: slowtest
1515
slowtest:
16-
nosetests --with-coverage --cover-erase --cover-package=fs_s3fs fs_s3fs/tests
16+
nosetests --with-coverage --cover-erase --logging-level=ERROR --cover-package=fs_s3fs fs_s3fs/tests
1717
rm .coverage
1818

1919
.PHONY: testall

fs_s3fs/_s3fs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def listdir(self, path):
437437
for prefix in common_prefixes:
438438
_prefix = prefix.get('Prefix')
439439
_name = _prefix[prefix_len:]
440-
if _name != _s3_key:
440+
if _name:
441441
_directory.append(_name.rstrip(self.delimiter))
442442
for obj in result.get('Contents', ()):
443443
name = obj["Key"][prefix_len:]
@@ -635,7 +635,7 @@ def gen_info():
635635
for prefix in common_prefixes:
636636
_prefix = prefix.get('Prefix')
637637
_name = _prefix[prefix_len:]
638-
if _name != _s3_key:
638+
if _name:
639639
info = {
640640
"basic": {
641641
"name": _name.rstrip(self.delimiter),

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
DESCRIPTION = f.read()
2424

2525
REQUIREMENTS = [
26-
"boto3~=1.4.5",
26+
"boto3~=1.4.0",
2727
"fs~=2.0.7",
2828
"six~=1.10.0"
2929
]

0 commit comments

Comments
 (0)