Discuss Scratch

DipLeChip
Scratcher
1000+ posts

Created a file system in Scratch

LINK: https://scratch.mit.edu/projects/431335682/

I have created a file storage system in scratch where you can store, read and write files.

In order to read files, simply click the read button and put in the directory of the file you wish to read. (eg. root/hello_world.txt)

In order to write files, simply click the write button, put in the directory of the file you wish to write to, hit space, and then inside quotation marks put in what you wish to write (eg. root/hello_world.txt “Good bye world”)

In order to create new files, all you have to do is go into the project, go into the control sprite and you will see a “when green flag clicked” block, under which you will see files being added to the “/” list. All you have to do is copy one of the blocks adding a file to the “/” list, and put in the file directory you want it to have plus its contents.

When making new files, make sure it follows the format below:
DIRECTORY
eg. root/hello_world.txt
anything after the “]” will be ignored, there should be no spaces outside of the "“ characters.

Notes:
Directories like (without quotation marks) ”\/roo\t\tim_spicy\\-///-/-/\\\/lol.txt“ are currently acceptable. Once directory breakdowns are added, like a tree command or such, it will break the above down into the following sub directories:
\/
roo\t\tim_spicy\\-/
/
/
-/
-/
\\\/
lol.txt

The last one will be the file as there is no ”/" after it.

Other notes to be added soon, if you spot anything do tell me.


More will be added.
Happy Scratching.
DipLeChip
Scratcher
1000+ posts

Created a file system in Scratch

Bump
TheDigitalBrick
Scratcher
41 posts

Created a file system in Scratch

I made one too! Interesting to see we had the same idea. Mine works by defining files as data in between an identity and an EOF character. Directories point to the identities, allowing for access of different files. I like yours, by the way. Very interesting.
-Happyx
Scratcher
92 posts

Created a file system in Scratch

hes banned?

Powered by DjangoBB