Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Pure Perl or the toolkit?

by halley (Prior)
on Aug 20, 2003 at 19:42 UTC ( [id://285276]=note: print w/replies, xml ) Need Help??


in reply to Re: Pure Perl or the toolkit?
in thread Pure Perl or the toolkit?

So File::Copy does not preserve the attributes of the copied file. Can't we fix it?

This is a band-aid that more closely approximates the desired behavior, but it will always be a chasing game of approximation (until the Unix/Linux systems provide a basic syscopy feature).

Say you implement this. Then you want to copy files which have ACLs (Access Control Lists) attached. Now you have to fix File::Copy again to copy the ACLs too. Tomorrow, what other file metadata will be employed at the filesystem level?

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: Re: Pure Perl or the toolkit?
by bronto (Priest) on Aug 21, 2003 at 07:22 UTC
    Say you implement this. Then you want to copy files which have ACLs (Access Control Lists) attached. Now you have to fix File::Copy again to copy the ACLs too. Tomorrow, what other file metadata will be employed at the filesystem level?

    IMHO, it doesn't make sense to worry about tomorrow problems if you don't know what they will be (well, at least with a fair amount of probability). <AFAIK>ACLsare still different from OS to OS, and somewhere they can be considered experimental;</AFAIK> it is a moving target, that one can plan to address only where it is stable enough.

    By the way, UNIX file permissions are there from the start, on every flavour of UNIX, and that problem on File::Copy should be addressed...

    Ciao!
    --bronto


    The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
    --John M. Dlugosz

      ...it doesn't make sense to worry about tomorrow problems if you don't know what they will be...

      See You aren't gonna need it for a bit more on exactly that.


      cp
      ----
      "Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://285276]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 16:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found