Renaming File Results in Deadwood

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Renaming File Results in Deadwood

Post by therube »

Renaming File Results in Deadwood (ghost entry)
(this might be a dupme post?)

Downloaded a file (I think it was from YT) with yt-dlp.
yt-dlp named the file as below - including a colon (:), which is an illegal filename character (in Windows).
Pussy Riot founder: Mutiny against Putin shows ‘the emperor is, in fact, naked’ [Xoci7mRAgJs].mp4


Because it has a colon in the file name, most (Windows or otherwise) utilities cannot deal with the file.
(Everything can.)

I (happened to) use(d) Salamander to rename the file, removing the colon.
F2, delete the colon, hit return.

With that, the file is renamed as wanted, but Everything still sees the old name (in addition to the new).


(I see a SFN in there.)
Everything: 1.5.0.1351a (x86)
OS: Windows NT 6.1 7601 (x64)
Admin: 0
Service: 1 (connected / installed and running)
Command line: -instance 15
Binary: C:\DEV\LOCATE\Everything.exe
Profile: C:\DEV\LOCATE\Everything-15.ini
Database: C:\DEV\LOCATE\Everything-15.db
Instance: 15
Config: match_path=1
Config: show_mouseover=0
Config: dupe_group_colors=1
Config: include_selected_folder_size_in_statusbar=0
Config: auto_include_fixed_volumes=0
Config: input_stream_buf_size=0
Config: output_stream_buf_size=0
Config: open_many_files_warning_threshold=16
Config: close_on_toggle=0
Config: path_hit_text_only=0
Config: rename_move=1
Config: search_edit_move_caret_to_selection_end=0
Config: bring_result_focus_into_view_on_sort=0
Config: scale=1.150000
Config: hscroll_div=3
Config: hdrop_file_format=1
Config: show_window_on_monitor_from_cursor=1
Config: utf8_bom=1
Config: efu_folder_append_path_separator=0
Config: txt_folder_append_path_separator=0
Config: csv_folder_append_path_separator=0
Config: convert_forward_slash_to_backslash=1
Config: size_format=1
Config: size_number_format=4
Config: show_detailed_listview_tooltips=0
Config: jump_to_timeout=999999
Config: bookmark_open_action=0
Config: db_update_thread_priority=-1
Config: refs_file_id_extd_directory_info_buffer_size=0
Config: content_buf_size=0
Config: content_multithreaded_max_memory_percent=50
Config: filter=EVERYTHING
Config: filter_everything_name=Everything
Config: filter_visible_count_max=0
Config: preview_icon=1
Config: treeview_labels=0
Config: inc_run_count_on_drag_drop=1
Config: search_history_always_suggest=1
Config: search_history_add_delay=3000
Config: search_history_add_on_kill_focus=1
Config: nav_max_selection=1024
...
USN RENAME_OLD_NAME PUSSYR~4.MP4
USN RENAME_NEW_NAME Pussy Riot founder - Copy.mp4
USN CLOSE RENAME_NEW_NAME Pussy Riot founder - Copy.mp4
...
ShellExecuteExW(): GetLastError(): 2: failed to execute C:\out\recylererer\X\Pus
sy Riot founder: Mutiny against Putin shows `the emperor is, in fact, naked' [Xo
ci7mRAgJs] - Copy.mp4
...
Related, LFN: Parent Paste pastes SFN & leaves dead wood.


PS:
name::
will find file names contain colons (& base name drive letters).
Last edited by void on Thu Jul 27, 2023 11:26 pm, edited 1 time in total.
Reason: trimmed log
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Renaming File Results in Deadwood

Post by void »

Thank you for the issue report therube,

The USN Journal entry is using the short filename.

There's nothing Everything can do about this at the moment as there's not enough information in the USN Journal to determine which file in the Everything index that is being renamed.

Everything would need to track the File ID for each file which would take up a rather large amount of RAM.
I am considering an option to do this.



Does Everything have the new filename in your index?
Pussy Riot founder - Copy.mp4

Everything should add the new name, it's just the old filename that will stick around:
Pussy Riot founder: Mutiny against Putin shows `the emperor is, in fact, naked' [Xoci7mRAgJs] - Copy.mp4



To force Everything to reindex this volume:
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Click Force Rebuild.
  • Click OK.
horst.epp
Posts: 1447
Joined: Fri Apr 04, 2014 3:24 pm

Re: Renaming File Results in Deadwood

Post by horst.epp »

: is not illegal in Windows NTFS file names.
It just adds an ADS stream part to a file.
No program is expected to handle such strange usage of : as normal part of a file name.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Renaming File Results in Deadwood

Post by void »

In this case it's a full width colon: ':' U+FF1A, which is perfectly valid in a filename.

The issue is with the USN Journal using the short name instead of the win32 filename.
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Renaming File Results in Deadwood

Post by therube »

Does Everything have the new filename in your index?
Pussy Riot founder - Copy.mp4

Everything should add the new name, it's just the old filename that will stick around:
Pussy Riot founder: Mutiny against Putin shows `the emperor is, in fact, naked' [Xoci7mRAgJs] - Copy.mp4
Correct.

it's a full width colon: ':' U+FF1A
Ah, the 'ol not-colon colon.
That's the second time I've fallen for it this month!
(So this is really a failure of Salamander, in that it cannot copy the file due to the unicode character.
Yes, yes, I know, TC & others can.)
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: Renaming File Results in Deadwood

Post by void »

Just a note:

The ASCII colon ':' will match the full width colon ':' when Match Diacritics under the Search menu is disabled.
Post Reply