This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MewK's profile picture

Filesystem Access Over Network & Dependency Check

Started by MewK, 20 February 2012 - 08:46 AM
MewK #1
Posted 20 February 2012 - 09:46 AM
Hey,

I was thinking about a new feature for my file manager, accessing the filesystem of remote clients.

One way for me to achieve that is to build a server/client architecture myself.
But another way would be to use an existing OS or library.

Is there anything out there I could use?

Another question: What is the current best practice to detect installed scripts like "Redworks" or "vi",
so I can implement features with a dependency check?

-MewK
luza #2
Posted 20 February 2012 - 09:49 AM
@your second question:

You could check if the startup file contains keywords like "reworks" or you could check with fs.exists if some special files only redworks would use exist on the computer.
MewK #3
Posted 20 February 2012 - 12:12 PM
@your second question:

You could check if the startup file contains keywords like "reworks" or you could check with fs.exists if some special files only redworks would use exist on the computer.

Yea, that's approach I was thinking about as well. The problem is that it depends on the current state of the project which may change in the near future.
We need more standards to be able to connect our different projects. And I guess it's up to us to define those standards. I'm thinking about shared libraries and stuff like that.
If I need to add a 500 step installation instruction, it is not usable for normal users.