Is it possible to have multiple attributes of the 'file' type on the same object?
I'm making a file-loader object, and sometimes the type of files I want to load come in two parts, so I need an optional second file attribute.
I did try it just adding a second file attribute to the Factory 'alloc 16b scram load' object, with no actual loading code in the Init section of the object XML, but it seems to cause the Axoloti Core to disconnect with the following error, if the second file path field is left blank:
file cd2352.vsm matches timestamp and size, skip uploading
Generate code complete
Start creating directory on sdcard : /multifile-load-test
creating dir: /multifile-load-test
Done creating directory
Changing working directory on sdcard : /multifile-load-test
Change working directory: /multifile-load-test
Done changing working directory
Start uploading file to sdcard : /multifile-load-test/working
IOException,java.io.FileNotFoundException: /Volumes/NO NAME/talkie/working (Is a directory)
java.io.FileNotFoundException: /Volumes/NO NAME/talkie/working (Is a directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at qcmds.QCmdUploadFile.Do(QCmdUploadFile.java:78)
at axoloti.USBBulkConnection$Transmitter.run(USBBulkConnection.java:855)
at java.lang.Thread.run(Thread.java:745)
Disconnect request
Done uploading file
I presume some behind-the-scenes filesystem checking is going on, and it's this that is failing, causing the disconnect.
If I put something (can be just a single character) into the second field, it uploads the first file without an error, and the Core isn't disconnected. I guess this is a bug, but hadn't been discovered before because nobody has attempted what I'm trying to do.
So, I guess my question is two-fold.
- Should it be possible to have multiple file uploads to SDRAM from a single object
- Is the above error a bug, and if so, can it be fixed such that the second file field can be left blank, without this causing the Axoloti hardware to disconnect?
I should probably file this as a bug-report, but I want to be sure I'm not doing something that is specifically unsupported/not supposed to be possible, before I go ahead with that.
Cheers,
a|x