This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-10-10 06:57:40

wei2912
Scratcher
Registered: 2010-05-09
Posts: 100+

File browsing for an OS

I want to know how to have my OS store files. Does anyone have ideas?


Waiting for Scratch 2.0...

Offline

 

#2 2010-10-10 09:33:27

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: File browsing for an OS

Well, you could create a simple list that stores all of your files, but since there are no multidemensional lists, you'd be pretty hard pressed to create a hierarchal file system (one with multiple folders).

Offline

 

#3 2010-10-10 10:25:53

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: File browsing for an OS

Try doing this in a list:

>Folder1
File1
File2
>>Folder1
File1
File2
>Folder2
File
File
>
and so on. Basically, the amount of ">"s is how far into the file system the folder is.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2010-10-13 04:20:04

wei2912
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: File browsing for an OS

coolstuff wrote:

Well, you could create a simple list that stores all of your files, but since there are no multidemensional lists, you'd be pretty hard pressed to create a hierarchal file system (one with multiple folders).

That was what i wanted to try, My idea:
If there are 3 files, one in desktop, one in music, which is in desktop and one in projects, which is in documents, which is in desktop:

1. /desktop/file1
2. /desktop/music/file2
3. /desktop/documents/projects/file3

Bu there is a lot of code in it. Are there any easier methods?


Waiting for Scratch 2.0...

Offline

 

#5 2010-10-13 18:46:15

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: File browsing for an OS

wei2912 wrote:

coolstuff wrote:

Well, you could create a simple list that stores all of your files, but since there are no multidemensional lists, you'd be pretty hard pressed to create a hierarchal file system (one with multiple folders).

That was what i wanted to try, My idea:
If there are 3 files, one in desktop, one in music, which is in desktop and one in projects, which is in documents, which is in desktop:

1. /desktop/file1
2. /desktop/music/file2
3. /desktop/documents/projects/file3

Bu there is a lot of code in it. Are there any easier methods?

Filing systems (especially ones with many levels of hierarchy) aren't exactly common on Scratch, and there's no easy way to do so, unfortunately.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#6 2010-10-20 00:10:15

wei2912
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: File browsing for an OS

Harakou wrote:

wei2912 wrote:

coolstuff wrote:

Well, you could create a simple list that stores all of your files, but since there are no multidemensional lists, you'd be pretty hard pressed to create a hierarchal file system (one with multiple folders).

That was what i wanted to try, My idea:
If there are 3 files, one in desktop, one in music, which is in desktop and one in projects, which is in documents, which is in desktop:

1. /desktop/file1
2. /desktop/music/file2
3. /desktop/documents/projects/file3

Bu there is a lot of code in it. Are there any easier methods?

Filing systems (especially ones with many levels of hierarchy) aren't exactly common on Scratch, and there's no easy way to do so, unfortunately.

I know it isn't common. So that's why i want to do this.


Waiting for Scratch 2.0...

Offline

 

#7 2010-10-27 04:07:39

Informageek
Scratcher
Registered: 2010-10-17
Posts: 30

Re: File browsing for an OS

Hello can you help me to make animations is for an os : DYERSTON OS
Like a turning sphere?

Offline

 

#8 2010-10-27 16:39:25

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: File browsing for an OS

Informageek wrote:

Hello can you help me to make animations is for an os : DYERSTON OS
Like a turning sphere?

Hi Informageek! Maybe your question would be better posed in "Requests" - scroll down on the main forum page until you reach the bottom and it should be in the forum section second from the bottom, ahead of the archived forums. Posting your request there should yield more results.  smile

Offline

 

Board footer