Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: preserving file permissions?

From: greggirwin:mindspring at: 23-Mar-2004 10:35

GS> clone-attributes: func [dest src] [ GS> set-modes dest get-modes src get-modes src 'file-modes GS> ] Do you want to use 'file-modes or 'copy-modes? I'm not sure what all the differences are in current releases; 'full-path might be returned on some systems. It looks like current Windows releases don't return it, even for 'file-modes where it should. In any case, you'll need to remove 'full-path if it comes back in the list of modes or it will cause an error when you try to use it with set-modes. -- Gregg