File Browser: Not showing folders with spaces #21938

Closed
opened 2010-04-07 09:42:50 +02:00 by Ignacio Fernández · 8 comments

%%%Other folders are showed fine but when you browse a folder with spaces the browser looks like in the image attached.

SO: Windows Vista
GC: NVIDIA GeForce 7100 GS
SVN: Rev 28062%%%

%%%Other folders are showed fine but when you browse a folder with spaces the browser looks like in the image attached. SO: Windows Vista GC: NVIDIA GeForce 7100 GS SVN: Rev 28062%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%More:

Browsing C:\Archivos de programa\ (Is the spanish one for "Program Files") console says:

C:\Archivos de programa\ empty directory

In Windows browser that folder has all the program folders inside but in Blender is empty and there is a folder labeled "Program Files" that has all the contents "Archivos de programa" should have. I'm pretty sure that it is a folder link problem in Windows Vista (maybe also W7).

Also a normal folder with spaces can be browsed normally.%%%

%%%More: Browsing C:\Archivos de programa\ (Is the spanish one for "Program Files") console says: C:\Archivos de programa\ empty directory In Windows browser that folder has all the program folders inside but in Blender is empty and there is a folder labeled "Program Files" that has all the contents "Archivos de programa" should have. I'm pretty sure that it is a folder link problem in Windows Vista (maybe also W7). Also a normal folder with spaces can be browsed normally.%%%
Member

%%%Note: I tested this on Mac OS X 10.5.8 and it has no problems here, I can see folders with spaces, and other folders inside them, just fine.

Maybe sounds like something specific to windows/international localisation?%%%

%%%Note: I tested this on Mac OS X 10.5.8 and it has no problems here, I can see folders with spaces, and other folders inside them, just fine. Maybe sounds like something specific to windows/international localisation?%%%

%%%That's right Matt, this has nothing to do with spaces. Further investigation led me to the conclusion that this has to do with "Junctions" or "Reparse Points" in Windows. Those can behave like soft links and you can check whether a folder is a Reparse Point in code with:

if (GetFileAttributes(dirname) & FILE_ATTRIBUTE_REPARSE_POINT){

(Works in winstuff.c)

Although i couldn't manage to get the referenced path yet (to use it to show the contents). The answer maybe the GetFinalPathNameByHandle() Windows API method but i can't get it to work yet.

Can the title/description of the bug be changed to show the real info?%%%

%%%That's right Matt, this has nothing to do with spaces. Further investigation led me to the conclusion that this has to do with "Junctions" or "Reparse Points" in Windows. Those can behave like soft links and you can check whether a folder is a Reparse Point in code with: if (GetFileAttributes(dirname) & FILE_ATTRIBUTE_REPARSE_POINT){ (Works in winstuff.c) Although i couldn't manage to get the referenced path yet (to use it to show the contents). The answer maybe the GetFinalPathNameByHandle() Windows API method but i can't get it to work yet. Can the title/description of the bug be changed to show the real info?%%%
%%%Uploaded a possible fix: https://projects.blender.org/tracker/index.php?func=detail&aid=21952&group_id=9&atid=127%%%
Member

%%%Confirmed, the reason are the newly introduced 'Junction Points' in Vista. These are used to map previously introduced folders (such as AppData or 'Program Files') as symbolic links that are by default hidden to the user.

The proposed solution works for Windows Vista but breaks blender on Win XP and older, still looking into a solution.%%%

%%%Confirmed, the reason are the newly introduced 'Junction Points' in Vista. These are used to map previously introduced folders (such as AppData or 'Program Files') as symbolic links that are by default hidden to the user. The proposed solution works for Windows Vista but breaks blender on Win XP and older, still looking into a solution.%%%
Member

%%%Moving to our todo list on wiki: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Simple_Todos#Filebrowser%%%

%%%Moving to our todo list on wiki: http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Simple_Todos#Filebrowser%%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
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
4 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#21938
No description provided.