You are not logged in.

#1 2013-10-12 18:42:53

fawkes5
Member
From: Canada
Registered: 2012-12-23
Posts: 84

Offline Bookmarks - Command-line utility

Hello,

I'm working on zsh script that (wget -pk)'s  a webpage for offline viewing. Includes options for easy viewing and listing.

I have one problem. I am unsure of what type of file system i should use to store/organize everything.

Right now i have this

BOOKMARK_DIRECTORY
|- all
|- tags

So all bookmarks are downloaded into there own folder under "all"
When a user creates a bookmark, he can specify tags. For each tag, a directory under "tags" is created with the tag name, and a symlink is created to the bookmarks hardcopy in "all"

It works, but it feels stupid. Maybe thats just inexperiance.

Anyways, any better ideas?

Offline

#2 2013-10-12 22:51:36

cookies
Member
Registered: 2013-01-17
Posts: 253

Re: Offline Bookmarks - Command-line utility

You could store the same data in a database like sqlite or mariadb. Those databases are quite handy if you have large amounts of data and enable you to easily expand your database if you want to store more meta data (or rearrange it). On the other hand, if you just want to add some tags to some bookmarks those databases might be overkill.

If you want to get into SQL and the database stuff, you could give sqlite a try. If you think, that your file based solution gets the job done perfectly for you, just stick with it.

Offline

#3 2013-10-13 04:33:12

fawkes5
Member
From: Canada
Registered: 2012-12-23
Posts: 84

Re: Offline Bookmarks - Command-line utility

Yah SQL is overkill. Thanks thou smile

Offline

#4 2013-10-13 12:35:27

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: Offline Bookmarks - Command-line utility

I think your solution is quite clean. Stick with it.

Offline

Board footer

Powered by FluxBB