Skip to content

Commit

Permalink
fixed safe delete
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Dec 21, 2008
1 parent b2478a3 commit b3a6877
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/filedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "thumb_standard.h"
#include "ui_fileops.h"
#include "metadata.h"
#include "trash.h"


static GHashTable *file_data_pool = NULL;
Expand Down Expand Up @@ -1949,7 +1950,10 @@ static gboolean file_data_perform_delete(FileData *fd)
if (isdir(fd->path) && !islink(fd->path))
return rmdir_utf8(fd->path);
else
return unlink_file(fd->path);
if (options->file_ops.safe_delete_enable)
return file_util_safe_unlink(fd->path);
else
return unlink_file(fd->path);
}

gboolean file_data_perform_ci(FileData *fd)
Expand Down

0 comments on commit b3a6877

Please sign in to comment.