Merge remote-tracking branch 'origin/master' into windows
[scilab.git] / scilab / modules / fileio / src / c / movefile.c
index ebd2a43..a5e8dc6 100644 (file)
 #include "createdirectory.h"
 #include "isdir.h"
 /*--------------------------------------------------------------------------*/
-int MoveFileFunction(wchar_t *DestinationFilename, wchar_t *SourceFilename)
+int MoveFileFunction(char *DestinationFilename, char *SourceFilename)
 {
     int ierr = 0;
     ierr = CopyFileFunction(DestinationFilename, SourceFilename);
     if (ierr == 0)
     {
-        if (deleteafileW(SourceFilename))
+        if (deleteafile(SourceFilename))
         {
             return 0;
         }
@@ -38,19 +38,19 @@ int MoveFileFunction(wchar_t *DestinationFilename, wchar_t *SourceFilename)
     return 0;
 }
 /*--------------------------------------------------------------------------*/
-int MoveDirectoryFunction(wchar_t *DestinationDirectory, wchar_t *SourceDirectory)
+int MoveDirectoryFunction(char *DestinationDirectory, char *SourceDirectory)
 {
     int ierr = 0;
 
-    if ( !isdirW(DestinationDirectory)  )
+    if ( !isdir(DestinationDirectory)  )
     {
-        createdirectoryW(DestinationDirectory);
+        createdirectory(DestinationDirectory);
     }
 
     ierr = CopyDirectoryFunction(DestinationDirectory, SourceDirectory);
     if (ierr == 0)
     {
-        if (removedirW(SourceDirectory))
+        if (removedir(SourceDirectory))
         {
             return 0;
         }