Skip to content

Conversation

@AlexanderPruss
Copy link

No description provided.

Alexander Pruss added 3 commits November 18, 2016 13:54
…n exception.

Implementation note - instead of using System.IO.FileAccess/FileMode, I
ended up creating an internal StreamType enum instead to keep the
interface simple. That's potentially something to change upon on review,
but I think it's good the way it is.
@jpreese
Copy link
Member

jpreese commented Jul 7, 2018

Just as a note, I did some conflict resolution locally, and this PR breaks some tests. May need to revisit.

@jpreese
Copy link
Member

jpreese commented Jul 8, 2018

This is for #187

@fgreinacher
Copy link
Contributor

@AlexanderPruss can you resolve the conflicts so that we see what tests are failing?

@jpreese
Copy link
Member

jpreese commented Jul 20, 2018

@fgreinacher this is probably going to be another case of someone needing to take the PR over. I don't believe the original author is active anymore.

@AlexanderPruss
Copy link
Author

I can try and take a look at this again, but it's been a while and I ended up setting the branch a bit confusingly :X

@ericnewton76
Copy link
Contributor

Um, does this make sense? Can you actually use System.IO.Directory.Move on a file and it works?

@jpreese
Copy link
Member

jpreese commented Aug 7, 2018

It's bit a bit since I've looked at the implementation of this, but all I remember is that it broke a lot of things.

To concretely answer your question though, yes, System.IO.Directory.Move on a file will move the file.

@ericnewton76
Copy link
Contributor

I guess in a way it makes sense. A directory or a file is really just a pointer to a structure that either is FileNames in the case of a Directory or FileData in the case of files.

While I'm thinking about it, does the inverse work as well? File.Move can move a directory?

@jpreese
Copy link
Member

jpreese commented Aug 7, 2018

Id have to run a test for it, but that would be my assumption as a directory is considered to be a file.

@kirides
Copy link

kirides commented Oct 22, 2018

File.Move(@"E:\TestDir", @"E:\TestDir2"); throws a FileNotFoundException saying "File "E:\TestDir" not found."

Directory.Move accepts Files though and moves them accordingly

1 similar comment
@kirides
Copy link

kirides commented Oct 22, 2018

File.Move(@"E:\TestDir", @"E:\TestDir2"); throws a FileNotFoundException saying "File "E:\TestDir" not found."

Directory.Move accepts Files though and moves them accordingly

@fgreinacher
Copy link
Contributor

@AlexanderPruss Can you rebase this on current master?

@fgreinacher
Copy link
Contributor

Closing in favor of #438

@fgreinacher fgreinacher closed this Jan 7, 2019
fgreinacher added a commit that referenced this pull request Feb 7, 2019
fgreinacher added a commit that referenced this pull request Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants