Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a8a277c

Browse files
committed
Fixed positioning of icon on copy()
1 parent 9bd2d97 commit a8a277c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Mac/Lib/macostools.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import macfs
88
import Res
99
import os
10+
from MACFS import *
1011

1112
Error = 'macostools.Error'
1213

@@ -74,7 +75,8 @@ def copy(src, dst, createpath=0):
7475

7576
sf = srcfss.GetFInfo()
7677
df = dstfss.GetFInfo()
77-
df.Creator, df.Type, df.Flags = sf.Creator, sf.Type, sf.Flags
78+
df.Creator, df.Type = sf.Creator, sf.Type
79+
df.Flags = (sf.Flags & (kIsStationary|kNameLocked|kHasBundle|kIsInvisible|kIsAlias))
7880
dstfss.SetFInfo(df)
7981

8082
def copytree(src, dst):

0 commit comments

Comments
 (0)