@@ -17,7 +17,7 @@ public static class FilesFolders
1717 /// </summary>
1818 /// <param name="sourcePath"></param>
1919 /// <param name="targetPath"></param>
20- public static void Copy ( this string sourcePath , string targetPath )
20+ public static void CopyAll ( this string sourcePath , string targetPath )
2121 {
2222 // Get the subdirectories for the specified directory.
2323 DirectoryInfo dir = new DirectoryInfo ( sourcePath ) ;
@@ -50,7 +50,7 @@ public static void Copy(this string sourcePath, string targetPath)
5050 foreach ( DirectoryInfo subdir in dirs )
5151 {
5252 string temppath = Path . Combine ( targetPath , subdir . Name ) ;
53- Copy ( subdir . FullName , temppath ) ;
53+ CopyAll ( subdir . FullName , temppath ) ;
5454 }
5555 }
5656 catch ( Exception e )
@@ -114,7 +114,7 @@ public static bool LocationExists(this string path)
114114 return Directory . Exists ( path ) ;
115115 }
116116
117- public static bool FileExits ( this string filePath )
117+ public static bool FileExists ( this string filePath )
118118 {
119119 return File . Exists ( filePath ) ;
120120 }
@@ -124,7 +124,7 @@ public static void OpenPath(string fileOrFolderPath)
124124 var psi = new ProcessStartInfo { FileName = FileExplorerProgramName , UseShellExecute = true , Arguments = fileOrFolderPath } ;
125125 try
126126 {
127- if ( LocationExists ( fileOrFolderPath ) || FileExits ( fileOrFolderPath ) )
127+ if ( LocationExists ( fileOrFolderPath ) || FileExists ( fileOrFolderPath ) )
128128 Process . Start ( psi ) ;
129129 }
130130 catch ( Exception e )
0 commit comments