Bug: Project Exclude Folders shows .zip files as folders

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
User avatar
pmk65
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Bug: Project Exclude Folders shows .zip files as folders

Post by pmk65 »

When I in Project Edit, select "Exclude Files and Folders" and press "Add Folder", it shows .zip files as folders.

Image

And another possible bug..

If I read "Script.ProjectSettings.SelectedProjectExcludeFilters" from a plugin, I get a list of files/folders back, separated by a linefeed.
But how do I distinguish between files and folders? As it seems you can add files from the "Add folder" GUI panel.

Example:

I press the "Add Folder" button, select a folder ("dummy") in my Project tree and then set the "Exclude files of type" to "dummy.txt"
Then I go to the same folder and select a file named "dummy.txt".

The result of "Script.ProjectSettings.SelectedProjectExcludeFilters" is then:

-- cut --
dummy/dummy.txt
dummy/dummy.txt
-- cut --

Both are exactly identical, and there's no special separator between folders and files.
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: Project Exclude Folders shows .zip files as folders

Post by Aivars »

I would suggest to use DirectoryExists function to check if it's a folder and if it still exists, because there are times when users will specify folders and later they get deleted or renamed.
Blumentals Software Programmer
Post Reply