Howto savely move a file using C# (saftsack.fs.uni-bayreuth.de)

published 1 year, 11 months ago, submitted by agnes_agnes_(285) 1 year, 11 months ago

If possible this version uses the special File.Replace on NTFS and gracially falls back on Delete+Move on any other filesystem. Nothing else to comment about here. I am just amazed that this kind of save moving is not supported by the framework itself. Instead the framework's move routine throws an exception if there is an file existing at the target location. Weird. ;)

1 comment | category: | Views: 71

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

posted by yesthatmcgurkyesthatmcgurk(3805) 1 year, 11 months ago

Lol savely.

information Login or create an account to comment on this story