Omnimaga > Ndless

Virtual Directory

(1/3) > >>

gudenau:
I would like to create a virtual directory in the root of the file explored on the cx, how would I go about doing this in c?

Legimet:
To create a directory:

--- Code: ---mkdir("/dirname", 0755);
--- End code ---

Also, welcome to Omnimaga, and be sure to Introduce yourself. :)

gudenau:

--- Quote from: Legimet on September 10, 2013, 08:59:41 pm ---To create a directory:

--- Code: ---mkdir("/dirname", 0755);
--- End code ---

Also, welcome to Omnimaga, and be sure to Introduce yourself. :)

--- End quote ---

Could I then tell the os that there are files there when there are not, then have it do stuff when I/O is preformed on them?

Legimet:
I don't understand, what exactly do you mean by "virtual directory"?
The code I gave simply creates a regular directory in the root of the filesystem (which cannot be seen from the document browser).

gudenau:

--- Quote from: Legimet on September 10, 2013, 09:39:12 pm ---I don't understand, what exactly do you mean by "virtual directory"?
The code I gave simply creates a regular directory in the root of the filesystem (which cannot be seen from the document browser).

--- End quote ---

What I want is to have a directory at the root of the file system that is not there, the os just thinks it is there and can use it as if it where not there, so when it reads and writes to that location a program on the calculator can then interpret it and do things based on the io that is being preformed. In the end I hope to have removable storage, as I have yet to see this on the nspire.

Navigation

[0] Message Index

[#] Next page

Go to full version