|
@@ -959,10 +959,12 @@ class File(DAVNonCollection):
|
959
|
959
|
workspace
|
960
|
960
|
)
|
961
|
961
|
|
962
|
|
-
|
963
|
962
|
with new_revision(self.content):
|
964
|
963
|
if basename(destpath) != self.getDisplayName():
|
965
|
|
- self.content_api.update_content(self.content, re.sub('\.[^\.]+$', '', self.provider.transform_to_bdd(basename(destpath))))
|
|
964
|
+ self.content_api.update_content(
|
|
965
|
+ self.content,
|
|
966
|
+ transform_to_bdd(basename(destpath)),
|
|
967
|
+ )
|
966
|
968
|
self.content_api.save(self.content)
|
967
|
969
|
else:
|
968
|
970
|
self.content_api.move(
|