You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
FileInfox=newFileInfo("a");x.Copy("b");// <-- returns a new FileInfo with the path "b", and also mutate x so its path is now "b"x.Delete();// Boom you lost your copy ("b"), but "a" is still there!
It seems intended but while I can see how this is the right behaviour for Move(), I can't follow the reasoning for Copy(). Besides, System.IO.*Info.Copy() don't mutate their instances (There is a discrepancy there between System.IO and AlphaFS).