]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed positioning of icon on copy()
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 9 Oct 1995 23:27:06 +0000 (23:27 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 9 Oct 1995 23:27:06 +0000 (23:27 +0000)
Mac/Lib/macostools.py

index 87eff6ee9250a44fdf6bced02c579655a49d975e..aa5eb6065875a49175625ed3d542312232d4aac6 100644 (file)
@@ -7,6 +7,7 @@ copy(src, dst) - Full copy of 'src' to 'dst'
 import macfs
 import Res
 import os
+from MACFS import *
 
 Error = 'macostools.Error'
 
@@ -74,7 +75,8 @@ def copy(src, dst, createpath=0):
        
        sf = srcfss.GetFInfo()
        df = dstfss.GetFInfo()
-       df.Creator, df.Type, df.Flags = sf.Creator, sf.Type, sf.Flags
+       df.Creator, df.Type = sf.Creator, sf.Type
+       df.Flags = (sf.Flags & (kIsStationary|kNameLocked|kHasBundle|kIsInvisible|kIsAlias))
        dstfss.SetFInfo(df)
        
 def copytree(src, dst):