Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Combine()

static string System.IO.FileSystemEventArgs.Combine ( string directoryPath,
string name )
inlinestaticpackageinherited

Definition at line 24 of file FileSystemEventArgs.cs.

25 {
26 bool flag = false;
27 if (directoryPath.Length > 0)
28 {
29 char c = directoryPath[directoryPath.Length - 1];
30 flag = c == Path.DirectorySeparatorChar || c == Path.AltDirectorySeparatorChar;
31 }
32 if (!flag)
33 {
34 return directoryPath + Path.DirectorySeparatorChar + name;
35 }
36 return directoryPath + name;
37 }

References System.IO.Path.AltDirectorySeparatorChar.

Referenced by System.IO.FileSystemEventArgs.FileSystemEventArgs(), and System.IO.RenamedEventArgs.RenamedEventArgs().