editorconfig and code cleanup

This commit is contained in:
2021-12-31 00:41:43 +03:00
parent a4d5df3fd6
commit 8f4fa3de6e
12 changed files with 249 additions and 40 deletions

View File

@@ -128,7 +128,7 @@ public static class Directory
// copies directory with symlinks instead of files
public static int SymCopy(string srcdir, string newdir)
{
var files = Directory.GetAllFiles(srcdir);
List<string> files = Directory.GetAllFiles(srcdir);
if (!srcdir.EndsWith('\\')) srcdir += '\\';
if (!newdir.EndsWith('\\')) newdir += '\\';
int i = 0;

View File

@@ -5,7 +5,7 @@ namespace DTLib.Filesystem;
internal class Symlink
{
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)]
static internal extern bool CreateSymbolicLink(string symlinkName, string sourceName, SymlinkTarget type);
internal static extern bool CreateSymbolicLink(string symlinkName, string sourceName, SymlinkTarget type);
internal enum SymlinkTarget
{