Folder as a file concept

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Folder as a file concept

Post by max »

Hey guys,

I've come to the point in Ghost where I have to decide for how to structure my system files. Current example: mouse cursors. So, theres an image file, and a configuration file. I like the way that OS X structures .app's, so I did something similar:

Code: Select all

/default.cursor
  cursor.cfg
  default.image
The config file contains things like the hitpoint of the cursor, and the name of the cursor image. So the cursor itself is actually just a folder.
What do you think about this? How do you do this? Also, as I don't have too much experience with filesystems yet, does the increasing number of files when using such structures have performance impacts?

Greets,
Max
User avatar
Roman
Member
Member
Posts: 568
Joined: Thu Mar 27, 2014 3:57 am
Location: Moscow, Russia
Contact:

Re: Folder as a file concept

Post by Roman »

Maybe you should use .bundle extension? A zoo of folder extensions can mislead a user.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
- Alan Kay
Post Reply