mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed redundant check of directory
This commit is contained in:
parent
36dcab11c1
commit
ee71a051b6
1 changed files with 2 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ class FileTransaction(object):
|
|||
def process(self):
|
||||
# Backup any existing files
|
||||
for dst, (src, opts) in self._transfers.items():
|
||||
if not os.path.isdir(src) and dst == src:
|
||||
if dst == src:
|
||||
continue
|
||||
|
||||
if os.path.exists(dst):
|
||||
|
|
@ -106,7 +106,7 @@ class FileTransaction(object):
|
|||
|
||||
# Copy the files to transfer
|
||||
for dst, (src, opts) in self._transfers.items():
|
||||
if not os.path.isdir(src) and dst == src:
|
||||
if dst == src:
|
||||
self.log.debug(
|
||||
"Source and destionation are same files {} -> {}".format(
|
||||
src, dst))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue