mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
can't log self! bluh
This commit is contained in:
parent
437084c300
commit
79bfb8acb6
@ -1499,13 +1499,19 @@ class WriteFileMixin(object):
|
||||
OVERWRITE_BECOMES_CONFLICT.log(reason=e)
|
||||
return self._rename_conflicted_file(abspath_u, replacement_path_u)
|
||||
|
||||
@log_call
|
||||
@log_call(
|
||||
action_type=u"magic-folder:rename-conflicted",
|
||||
include_args=["abspath_u", "replacement_path_u"],
|
||||
)
|
||||
def _rename_conflicted_file(self, abspath_u, replacement_path_u):
|
||||
conflict_path_u = self._get_conflicted_filename(abspath_u)
|
||||
fileutil.rename_no_overwrite(replacement_path_u, conflict_path_u)
|
||||
return conflict_path_u
|
||||
|
||||
@log_call
|
||||
@log_call(
|
||||
action_type=u"magic-folder:rename-deleted",
|
||||
include_args=["abspath_u"],
|
||||
)
|
||||
def _rename_deleted_file(self, abspath_u):
|
||||
try:
|
||||
fileutil.rename_no_overwrite(abspath_u, abspath_u + u'.backup')
|
||||
|
Loading…
x
Reference in New Issue
Block a user