system.io.fileinfo Questions

4

Solved

I was wondering if someone could help me understand why does System.IO.FileInfo behaves differently on Windows than on Linux when handling relative paths. Example On Linux PS /home/user/Document...
Assyrian asked 7/12, 2021 at 2:1

5

Solved

I have the following code: foreach (string p in dirs) { string path = p; string lastAccessTime = File.GetLastAccessTime(path).ToString(); bool DirFile = File.Exists(path); FileInfo fInf = new...
Apfelstadt asked 29/6, 2009 at 13:23

7

Solved

I am now starting to use PowerShell and after a lot of time using the Unix shells and want to know how to check for the existence of a file or directory. In Powershell why does Exist return false ...
Armes asked 11/3, 2009 at 23:57

4

Solved

The title says it all: I read in a tar.gz archive like so break the file into an array of bytes Convert those bytes into a Base64 string Convert that Base64 string back into an array of bytes Wr...
Inrush asked 18/9, 2014 at 17:59

3

Solved

I'm trying to return the .config files that exist in %WINDIR%\System32\inetsrv\config. For this I am using the following code: DirectoryInfo configFolder = new DirectoryInfo(Environment.ExpandEnv...
Medicate asked 28/2, 2012 at 16:8
1

© 2022 - 2024 — McMap. All rights reserved.