editorconfig and code cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user