Blender Delete file | problem #88131

Closed
opened 2021-05-08 19:21:58 +02:00 by Nicolaj Hazendonk · 17 comments

System Information
Operating system: Windows 10 home 64x
Graphics card: GTX 1050 ti 8gb

Blender Version
Worked: 2.90

Short description of error
the hit X to delete data from inside the File Browser is dangerous because theres no bin. This is a very dangerous operation with no way to get data back.

look at the Windows folder!!! Very dangerous!!!

Exact steps for others to reproduce the error
always

**System Information** Operating system: Windows 10 home 64x Graphics card: GTX 1050 ti 8gb **Blender Version** Worked: 2.90 **Short description of error** the hit X to delete data from inside the File Browser is dangerous because theres no bin. This is a very dangerous operation with no way to get data back. look at the Windows folder!!! Very dangerous!!! **Exact steps for others to reproduce the error** always

Added subscriber: @Das_Nicolaj

Added subscriber: @Das_Nicolaj
Member

Added subscriber: @Calra

Added subscriber: @Calra
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

I deleted files by pressing X in the File Browser.
There are going to the Recycle Bin in Windows.

Can you double check?
I cannot reproduce this issue.

I deleted files by pressing `X` in the File Browser. There are going to the Recycle Bin in Windows. Can you double check? I cannot reproduce this issue.

PC is freezing of this

and what about the Windows folder?

PC is freezing of this and what about the Windows folder?

Added subscriber: @rjg

Added subscriber: @rjg

@Das_Nicolaj Since commits 8825250f5a and 98dfb4dd1c all file delete operations from the file browser result in moving the files and directories into the recycling bin.

Please describe step by step what you are doing and what happens as a result of it. What do you mean by "look at the Windows folder"? Please also tell us what version of Blender are you testing this in?

In the default keymap the {key X} is mapped to call file.delete in the file browser (FILE_OT_delete implemented in file_ops.c). This function in turn calls file_delete_exec, which calls file_delete_single. To delete the files it only uses the non-destructive BLI_delete_soft that moves them to the recycling bin.

@Das_Nicolaj Since commits 8825250f5a and 98dfb4dd1c all file delete operations from the file browser result in moving the files and directories into the recycling bin. Please describe step by step what you are doing and what happens as a result of it. What do you mean by "look at the Windows folder"? Please also tell us what version of Blender are you testing this in? In the default keymap the {key X} is mapped to call `file.delete` in the file browser (`FILE_OT_delete` implemented in `file_ops.c`). This function in turn calls `file_delete_exec`, which calls `file_delete_single`. To delete the files it only uses the non-destructive `BLI_delete_soft` that moves them to the recycling bin.
Member

Added subscriber: @Harley

Added subscriber: @Harley
Member

On Windows, deleting a file in the File Browser sends it to the Recycle Bin where it can be recovered.

and what about the Windows folder?

Don't delete that. Don't do that from inside Blender, and don't do that from outside Blender.

Do not delete them from your house, do not delete them with your mouse. Do not delete them in a box, do not delete them with a fox. Do not delete them in your car, keep them keep them, where they are. Do not delete them here nor there, do not delete them anywhere.

On Windows, deleting a file in the File Browser sends it to the Recycle Bin where it can be recovered. > and what about the Windows folder? Don't delete that. Don't do that from inside Blender, and don't do that from outside Blender. Do not delete them from your house, do not delete them with your mouse. Do not delete them in a box, do not delete them with a fox. Do not delete them in your car, keep them keep them, where they are. Do not delete them here nor there, do not delete them anywhere.

@Das_Nicolaj If you did indeed mean that you tried to delete files from C:\Windows then this is a bad idea no matter whether you attempt to do this from within Blender or the Windows Explorer. Those files are part of the Windows operating system and should not be deleted or moved.

@Das_Nicolaj If you did indeed mean that you tried to delete files from `C:\Windows` then this is a bad idea no matter whether you attempt to do this from within Blender or the Windows Explorer. Those files are part of the Windows operating system and should not be deleted or moved.

Added subscriber: @deadpin

Added subscriber: @deadpin

No repro here -- the file will go the recycle bin for me.

Additionally, if you navigate to the windows folder with blender and attempt to x a text file (for example) you are first prompted with a Windows dialog asking if you want to elevate to Administrator since that's what's required (your account needs to be part of the Administrators group for this to even happen).

Hitting yes will then prompt you again with another dialog because the app itself needs permission to make changes to such folders.

If you click though both of those confirmations the file will finally end up in the Recycle Bin.

That said, I do think it's unfortunate that the file browser takes over keys in general. I would really like to start typing and have the file browser just navigate to the file/folder whose letters I'm typing. This occurs in all other file browsers so it's entirely reasonable for a user to expect this behavior. But right now it takes over all the keys like T, N, X etc. for its own purposes. This is not a bug today but a larger design issue that would be discussed elsewhere.

No repro here -- the file will go the recycle bin for me. Additionally, if you navigate to the windows folder with blender and attempt to `x` a text file (for example) you are first prompted with a Windows dialog asking if you want to elevate to Administrator since that's what's required (your account needs to be part of the Administrators group for this to even happen). Hitting yes will then prompt you again with another dialog because the app itself needs permission to make changes to such folders. If you click though both of those confirmations the file will finally end up in the Recycle Bin. That said, I do think it's unfortunate that the file browser takes over keys in general. I would really like to start typing and have the file browser just navigate to the file/folder whose letters I'm typing. This occurs in all other file browsers so it's entirely reasonable for a user to expect this behavior. But right now it takes over all the keys like T, N, X etc. for its own purposes. This is not a bug today but a larger design issue that would be discussed elsewhere.
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.

sorry if i give no reation

will the design of the X delete will removed if i can ask?

sorry if i give no reation will the design of the X delete will removed if i can ask?

@Das_Nicolaj We won't be implementing any changes if it's not apparent what the problem is. Please answer the following questions:

  • Step by step, what were the actions you've taken in Blender?
  • What files or directories were you trying to delete?
  • What did you mean by "look at the Windows folder"?
  • How have you checked that the file or directory is not moved to the recycling bin?

All files and directories deleted in the file browser should be moved to the recycling bin when using a Blender version after commit 98dfb4dd1c.

@Das_Nicolaj We won't be implementing any changes if it's not apparent what the problem is. Please answer the following questions: - Step by step, what were the actions you've taken in Blender? - What files or directories were you trying to delete? - What did you mean by "look at the Windows folder"? - How have you checked that the file or directory is not moved to the recycling bin? All files and directories deleted in the file browser should be moved to the recycling bin when using a Blender version after commit 98dfb4dd1c.

I try to delete a folder with images from my work and it still there

I try to delete a folder with images from my work and it still there
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#88131
No description provided.