Enlightenment CVS committal Author : lordchaos Project : e17 Module : apps/evfs
Dir : e17/apps/evfs/src/lib Modified Files: evfs_commands.c Log Message: File renaming support =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/evfs/src/lib/evfs_commands.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- evfs_commands.c 19 Aug 2005 12:15:12 -0000 1.7 +++ evfs_commands.c 26 Sep 2005 11:39:47 -0000 1.8 @@ -49,3 +49,20 @@ free(command); } + +void evfs_client_file_rename(evfs_connection* conn, evfs_filereference* from, evfs_filereference* to) { + evfs_command* command = NEW(evfs_command); + + printf("Renaming a file..\n"); + + command->type = EVFS_CMD_REMOVE_FILE; + command->file_command.num_files = 2; + command->file_command.files = malloc(sizeof(evfs_filereference*)*2); + command->file_command.files[0] = from; + command->file_command.files[1] = to; + + evfs_write_command(conn, command); + + free(command); + +} ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs