I am creating a backup application and have to get the list of files in some directory here is the simple way to do it. If you only need contents of one directory you can use this code, i output it to System.Console just as an example, you can catch everything in string[] or whatever collection you prefer for your application. You only need using System.IO for this example:
If you are in need to do this recursively for all sub directories you just call the void after file writing for loop
When you are building a product on the internet, you should aim to get it out as soon as humanly possible. Things you don’t want to care that moment include ...
Exactly two months ago I was out on my very usual bike route and I heard the radar warning me that a car was behind me, then I heard the car braking hard and...
I wrote about migrating the Redis database from AWS ElastiCache to another provider a few years ago . In my case it was Azure, but it doesn’t matter. I used ...
When building any product or business, you want to make it as resilient as possible. You should do that from the very beginning, but sometimes this is hard, ...
Comments