DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Folder Node does not like spaces in filenames  (Read 13,154 times)

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Folder Node does not like spaces in filenames
« on: December 07, 2014, 09:04 AM »
It will list all existing files, but upon clicking opens only those without spaces in the name.

No big deal, I can simply Ctrl click to open the containing folder. But it were more comfortable not having to take this detour.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #1 on: December 07, 2014, 09:23 AM »
Thanks i will fix.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #2 on: December 19, 2014, 06:50 AM »
Question -- is it having trouble opening files with spaces in the name or only files that have spaces at the BEGINNING or END of their filename?

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Re: Folder Node does not like spaces in filenames
« Reply #3 on: December 19, 2014, 09:10 PM »
In the middle of file names, the blanks between words. Replacing them with underscores solves the problem, but that has repurcussions on other programs that depend on these files.

Not something I could not live with, just wanted to mention it. If you can fix it easily, great, if not, I'll keep opening their parent folder.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #4 on: December 19, 2014, 09:15 PM »
Spaces in the middle of file names should not cause any problems for LBC and that is a bug that needs to be fixed asap.
Problem is I am having a hard time reproducing the issue.
Any way you could help me reproduce the issue or any other clues?

ps.
I'm updating a beta release with bugfixes here:
http://www.donationcoder.com/forum/index.php?topic=2578.0

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Re: Folder Node does not like spaces in filenames
« Reply #5 on: December 20, 2014, 04:26 PM »
Step by step:
I add a 2nd level subtree on the left side
I assign it the Node Tye: Folder
Checkmark "Divide Leter Groups" = ON
Root Folder to Display: ..\MyHelp
Accept File Patterns: *.htm*|*.chm

That's about it. The folder "MyHelp" contains the output of my personal wiki-system, exported mostly as html, some longer topics as chm. Some have file names like "JPEG Illuminator.html" or "A + B Company.html". No error message or anything, LCB simply refuses to do anything with them. Renaming them to "JPEG_Illuminator" and "A_+_B_Company" solves the problem.

I am on Win7.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #6 on: December 20, 2014, 04:34 PM »
Ok so without trying to reproduce yet, i am noticing that those are both HTML files.. i wonder.. could you see if the behavior is also present on non .html files?

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Re: Folder Node does not like spaces in filenames
« Reply #7 on: December 20, 2014, 09:21 PM »
You're right, doesn't happen with chm and txt - never noticed that it does indeed only occur with html files.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #8 on: December 20, 2014, 09:39 PM »
next question:

if you go to the main Options node, and the second tab "Program Options 2", what do you have for Custom Internet Browser?
If you have something specified and are using $$1, try "$$1" instead.

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Folder Node does not like spaces in filenames
« Reply #9 on: December 20, 2014, 10:22 PM »
Ok so without trying to reproduce yet, i am noticing that those are both HTML files.. i wonder.. could you see if the behavior is also present on non .html files?
Good point. I have noticed that other software and file-handlers sometimes dislike .html files with embedded spaces in the filename. I had presumed this was in line with some obscure Microsoft or other filenaming standard that I was unaware of.

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Re: Folder Node does not like spaces in filenames
« Reply #10 on: December 25, 2014, 07:46 AM »
"Program Options 2", what do you have for Custom Internet Browser?
Nothing, the whole field is empty.
Firefox is my default browser which opens the help.html files when dbl-clicking them directly after I call up their folder by Ctrl-clicking their file names in LBC. I discovered I can also right-click them from LBC and choose OPEN which works fine too, so again, no worries here if it's too much hassle to fix it.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #11 on: December 25, 2014, 11:25 AM »
i'll look into it again, now that i know the basic cause.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #12 on: December 25, 2014, 11:35 AM »
Ok, I think i have fixed the problem; can you redownload the newly uploaded beta and give it a try?

ScreenManiac

  • Supporting Member
  • Joined in 2014
  • **
  • Posts: 109
Re: Folder Node does not like spaces in filenames
« Reply #13 on: December 26, 2014, 06:43 PM »
Thanks. That did the trick. It works fine now.  :Thmbsup:

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Folder Node does not like spaces in filenames
« Reply #14 on: December 26, 2014, 08:25 PM »
:up:

Original address: https://www.donationcoder.com/forum/index.php?topic=39768.0