Fork me on GitHub

Announcement

The oneye project has been discontinued. You might not expect further fixes and support from us. All community related systems are set to read-only mode. Though feel free to download and use oneye as-is or even fork it over at GitHub.

#1 2011-08-14 18:28:52

chris...
Member
Registered: 2011-08-14
Posts: 11

File format

Hi

I am using eyeos 1.9 on a ARM based NAS running apache + php 5.2.x so I cant use the eyeos 2.x series
I'd like to know the format of the files it uses

Each file seems to be made up of 2 files that seem to be in the format

filename_hash.eyeFile which is the actual file and
filename_hash.eyeInfo which contains an xml file describing the file

What is the hash or checksum in the file name how can I generate it?

I'd like to use the host OS to generate files automatically to be used in eyeos by other online users

Offline

#2 2011-08-15 01:40:57

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

Hey Chris,

nice to see you here. Welcome.

eyeos series 1 is using a virtual files system for secure file management. Actually there are four different file extensions you should know of: eyeFile, eyeInfo and a third one, that is used from within the trash folder only: eyeTrash. The fourth extension marks standalone files on the desktop, representing links. All four have PHP constants, which are defined in settings.php.

At first: The concept behind the vfs (short form of virtual files system) of eyeos series 1 is not as consistent as we'd wish it to be. There are a lot known problems with it, which I'm just too lazy to work around. Most of them effect the links system. Earlier versions had problems with the trash dir and just at the beginning of the series there were problems with the groups management. eyeos series 1 is quite old now and it's just too late to change this. We'll need to live with these and hope for something better soon.

The first part of files with those first three extensions is their file name, which consists of the virtual file name, an underscore and the RANDOM (mostly - just as with everything on computing machines) key, which you already noticed.

The eyeFile file contains the original file data and the eyeInfo file contains data about the virtual file: the virtual file name, the file's author, the date and time it was created on and rarely a hint on what application it was created with, but that's just unnecessary.

<eyeFiles>
    <filename></filename>
    <author></author>
    <created></created>
    <creationapp></creationapp>
</eyeFiles>

Best regards,
Lars Knickrehm

The oneye project.

Offline

#3 2011-08-15 05:32:15

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

I'm doing something wrong all the time

When I look at the file in eyeos the icon is a question mark and the file name is eyeFiles_View_Icons_Icon_1

Change file permission so its writable by the server

Any need for the the random part to be 32 caracters long?
What happens if they are the same?

Last edited by chris... (2011-08-15 05:54:34)

Offline

#4 2011-08-16 02:55:10

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

chris... wrote:

Change file permission so its writable by the server

What are you talking about?

chris... wrote:

Any need for the the random part to be 32 caracters long?

Hmm... I just took a close look at the sources and it seems you just need the underscore and maybe one more random character, but I guess it works withno extra character, too wink ...

chris... wrote:

What happens if they are the same?

Same as?


Best regards,
Lars Knickrehm

The oneye project.

Offline

#5 2011-08-19 00:53:13

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

lars-sh wrote:
chris... wrote:

Change file permission so its writable by the server

What are you talking about?

chris... wrote:

Any need for the the random part to be 32 caracters long?

Hmm... I just took a close look at the sources and it seems you just need the underscore and maybe one more random character, but I guess it works withno extra character, too wink ...

chris... wrote:

What happens if they are the same?

Same as?

1. The info file needs to be writeable by the web server, read-only isnt good enough

2. The random characters after the underscore, what happens if they are the same as another file?
I tested it myself and the same "random" characters for two different files makes no difference. As you pointed out no extra characters are even required

I noticed I can't right-click on files when using the 'details' view. It works on 'icons' and 'list' view

Offline

#6 2011-08-20 02:06:37

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

chris... wrote:

I noticed I can't right-click on files when using the 'details' view. It works on 'icons' and 'list' view


You're right. I just didn't implement that, 'cause the table control of eyeos series 1 is not made for such things - sadly sad ...


Best regards,
Lars Knickrehm

The oneye project.

Offline

#7 2011-08-21 00:27:24

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

I have a folder with almost a hundred files in it and its very slow to open
Also it doesnt like square brackets in the file name
With files > 2GB it shows the author as the file size
Files dont sort correctly in table view

Also is eyeos 2.5 ever going to run on php 5.2.x?

Last edited by chris... (2011-08-21 01:06:06)

Offline

#8 2011-08-21 13:39:18

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

Hi Chris,

chris... wrote:

I have a folder with almost a hundred files in it and its very slow to open

This is quite easy to explain: oneye gets an array of all files in the selected folder, does some work in order to prepare the data and finally sends everything out to the browser.

chris... wrote:

Also it doesnt like square brackets in the file name

Did you create the file using eyeFiles / eyeMkDir or from your real os?

chris... wrote:

With files > 2GB it shows the author as the file size

I really don't know why eyeos shows the author as file size on large files... Can you post the corresponding eyeInfo file, please?
Do you use the default virtual or the native file system of oneye?

chris... wrote:

Files dont sort correctly in table view

This is a known bug. It's a problem with the table control. You can file this as a bug in the bug section in the forums, so when I've some free time I can go investigating...

chris... wrote:

Also is eyeos 2.5 ever going to run on php 5.2.x?

Sorry, eyeos 2 is never going to support php versions lower 5.3.0.


Best regards,
Lars Knickrehm

The oneye project.

Offline

#9 2011-08-23 20:37:19

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

lars-sh wrote:

This is quite easy to explain: oneye gets an array of all files in the selected folder, does some work in order to prepare the data and finally sends everything out to the browser

Can this speed be increased?

lars-sh wrote:

Did you create the file using eyeFiles / eyeMkDir or from your real os?

I made my own program to create the files

lars-sh wrote:

I really don't know why eyeos shows the author as file size on large files... Can you post the corresponding eyeInfo file, please?
Do you use the default virtual or the native file system of oneye?

It's the same as all the other files
Whats the difference between the two file systems?


lars-sh wrote:

This is a known bug. It's a problem with the table control. You can file this as a bug in the bug section in the forums, so when I've some free time I can go investigating...
Sorry, eyeos 2 is never going to support php versions lower 5.3.0.

OK

Offline

#10 2011-08-24 03:18:29

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

One general note: Please be careful when updating to new releases: You might need to repeat several steps, cause the update script replaces already existing files.

chris... wrote:

Can this speed be increased?

Hmm... Sure, but I don't expect any speed improvements for oneye 0.8, sorry...

chris... wrote:

I made my own program to create the files

In eyeOSxxxxxxxxxx/system/services/vfs/modules/virtual.eyecode the global variable $charBlackList restricts eyeos from using square brackets. Just remove them from the array and you're done.

chris... wrote:

It's the same as all the other files
Whats the difference between the two file systems?

Instead of the virtual files system, which is based on eyeInfo and eyeFile files, using the native files system allows to use files just as you do on your local system. The native files system can be slightly insecure and therefore should be used on local systems only. You can enable it in the settings.php by changing VFS_MODULE to 'native'.

PS: The native files system might even speed up the folder view...


Best regards,
Lars Knickrehm

The oneye project.

Offline

#11 2011-08-24 17:15:04

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

Im using eyeos 1.9.0.1

changing the VFS_MODULE to real from virtual does not seem to make any difference with any groups directory

Last edited by chris... (2011-08-24 18:06:09)

Offline

#12 2011-08-24 21:28:19

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

That's right. The 'real' files system (it's called 'native' in oneye 0.9, so excuse my miss-calling in previous posts) has no effect on trash and group files.


Best regards,
Lars Knickrehm

The oneye project.

Offline

#13 2011-08-25 19:16:03

chris...
Member
Registered: 2011-08-14
Posts: 11

Re: File format

where can I download oneye from?
how can i share 'native' files in groups. e.g. I'd like to automatically keep an updated list of files available to everyone without having to generate eyeInfo files

Last edited by chris... (2011-08-25 19:20:33)

Offline

#14 2011-08-26 16:17:14

lars-sh
Administrator
From: near Hamburg, Germany
Registered: 2011-07-14
Posts: 731
Website

Re: File format

Hi Chris,

oneye 0.8 will be released in September and is "just" an update for eyeos 1.9.

oneye 0.9 is still in development and I plan to publish some more information until the end of 2011.


Best regards,
Lars Knickrehm

The oneye project.

Offline

Board footer

Powered by FluxBB