[nautilus] file-operations: auto-escape filenames on native ntfs mounts



commit f03cb9f79a2f005326834dc082dfbae4e0a4b786
Author: ignapk <automat script gmail com>
Date:   Sun Jul 12 20:30:59 2020 +0200

    file-operations: auto-escape filenames on native ntfs mounts
    
    Currently when copying to NTFS filesystem files that have reserved
    characters in their names, the process will fail.
    
    There is already code in place to handle this situation for FAT by
    replacing invalid characters with underscores, so handle this situation
    in similar fashion for NTFS as well.
    
    Closes #1343

 src/nautilus-file-operations.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/nautilus-file-operations.c b/src/nautilus-file-operations.c
index da67fbf1c..4e8e0224c 100644
--- a/src/nautilus-file-operations.c
+++ b/src/nautilus-file-operations.c
@@ -4214,6 +4214,7 @@ make_file_name_valid_for_dest_fs (char       *filename,
     {
         if (!strcmp (dest_fs_type, "fat") ||
             !strcmp (dest_fs_type, "vfat") ||
+            !strcmp (dest_fs_type, "ntfs") ||
             !strcmp (dest_fs_type, "msdos") ||
             !strcmp (dest_fs_type, "msdosfs"))
         {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]