16,012,611 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 12239906 (Top 5 by date)
Member 12239906
10-May-19 7:04am
View
take it easy my friend, we are here to solve not to make issues,
if you really want me to delete this I'll do that...
Member 12239906
10-May-19 6:01am
View
DirectoryInfo class doesn't actually validate the file path passed to it in the constructor either until the value of the Exists property is retrieved or a method is called that attempts to perform an operation on the file system, this code should not throw a DirectoryNotFound exception before the Exists property is retrieved thus the microsoft example did not incorrectly put the GetDirectories line above the dir.Exists.
To avoid plagiarism I've mentioned the link of microsoft doc in my comments.
Member 12239906
9-May-19 14:29pm
View
here is the question
- How to copy a directory from one location to another using C#
so which one is the right solution ?
all of them just copy contents of the source folder not the source folder itself. do you call this small bug ???
I've copied from microsoft docs from here and changed some parts:
https://docs.microsoft.com/en-us/dotnet/standard/io/how-to-copy-directories
what do you mean by plagiarism ?
thats funny if microsoft call that plagiarism too if I share something from their docs.
Member 12239906
3-May-19 16:22pm
View
you are right dude, but 3 past hours I was searching for a function to copy a directory to another, but I could not find.
I wanted that function copy the source folder itself too and not just contents even recursively.
Member 12239906
29-Nov-18 1:49am
View
It doesn't work yet