Skip to content

Commit b2281bf

Browse files
committed
see 0.2.4 notes
1 parent 186e819 commit b2281bf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,11 @@ Client.shell(self)
171171

172172
## CHANGELOG
173173

174+
### 0.2.4
175+
- bugfix in delete_file
176+
174177
### 0.2.3
175-
- add ExtraArgs to upload_file
178+
- add extra_args to upload_file
176179

177180
### 0.2.2
178181
- added error to upload_file to prevent file name in destination path

client.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,19 @@
3535
Example 2: Client.list_files(space_name='sfo3')
3636
"""
3737
)
38-
3938
cant_replace_file_ext = (
4039
"""
4140
You can not replace the file extention in the 'rename' kwarg.
4241
Safe: rename = 'old_name' -> 'foo/bar/old_name.txt' -> 'foo/bar/new_name.txt'
4342
Unsafe: rename = 'new_name.mp4' -> 'foo/bar/old_name.txt' -> 'foo/bar/new_name.mp4'
4443
"""
4544
)
46-
4745
cant_place_path_in_file_name = (
4846
"""
4947
You can not place the path in the 'rename' kwarg, use the 'destination' kwarg instead.
5048
Example: destination = 'new/path/' -> 'old/path/old_name.txt' -> 'new/path/old_name.txt'
5149
"""
5250
)
53-
5451
cant_place_file_name_in_destination = (
5552
"""
5653
You can not place the file name in the destination path.
@@ -319,7 +316,7 @@ def delete_file(self, file_path, yes=False, space_name=None):
319316
if ans.lower not in ['y', 'yes']:
320317
return False
321318

322-
res = self.session.delete_object(Bucket=self.space_name, Key=file_path)
319+
res = self.session.delete_object(Bucket=self.space, Key=file_path)
323320

324321
if res.get('ResponseMetadata').get('RetryAttempts') == 0:
325322
return True

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def parse_requirements(filename):
1919

2020
setup(
2121
name='digital-ocean-spaces',
22-
version='0.2.3',
22+
version='0.2.4',
2323
author='Jody Doolittle <https://chariot-dev.com>',
2424
license='MIT',
2525
url='https://github.com/ChariotDev/digital-ocean-spaces',

0 commit comments

Comments
 (0)