@@ -17,7 +17,7 @@ public static class FilesFolders
17
17
/// </summary>
18
18
/// <param name="sourcePath"></param>
19
19
/// <param name="targetPath"></param>
20
- public static void Copy ( this string sourcePath , string targetPath )
20
+ public static void CopyAll ( this string sourcePath , string targetPath )
21
21
{
22
22
// Get the subdirectories for the specified directory.
23
23
DirectoryInfo dir = new DirectoryInfo ( sourcePath ) ;
@@ -50,7 +50,7 @@ public static void Copy(this string sourcePath, string targetPath)
50
50
foreach ( DirectoryInfo subdir in dirs )
51
51
{
52
52
string temppath = Path . Combine ( targetPath , subdir . Name ) ;
53
- Copy ( subdir . FullName , temppath ) ;
53
+ CopyAll ( subdir . FullName , temppath ) ;
54
54
}
55
55
}
56
56
catch ( Exception e )
@@ -114,7 +114,7 @@ public static bool LocationExists(this string path)
114
114
return Directory . Exists ( path ) ;
115
115
}
116
116
117
- public static bool FileExits ( this string filePath )
117
+ public static bool FileExists ( this string filePath )
118
118
{
119
119
return File . Exists ( filePath ) ;
120
120
}
@@ -124,7 +124,7 @@ public static void OpenPath(string fileOrFolderPath)
124
124
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName , UseShellExecute = true , Arguments = fileOrFolderPath } ;
125
125
try
126
126
{
127
- if ( LocationExists ( fileOrFolderPath ) || FileExits ( fileOrFolderPath ) )
127
+ if ( LocationExists ( fileOrFolderPath ) || FileExists ( fileOrFolderPath ) )
128
128
Process . Start ( psi ) ;
129
129
}
130
130
catch ( Exception e )
0 commit comments