4 file management q & a, 5 file names, 6 file system errors – Campbell Scientific CR3000 Micrologger User Manual
Page 352: Table 85. file system error codes

Section 8. Operation
352
Powerup.ini Example
'Run a program file now, erase data now.
14,run.cr1,cpu:
8.3.4.4 File Management Q & A
Q: How do I hide a program file on the CR3000 without using the CRBasic
FileManage() instruction?
A: Use the CoraScript
File-Control command, or the Web API
FileControl
command.
8.3.5 File Names
The maximum size of the file name that can be stored, run as a program, or FTP
transferred in the CR3000 is 59 characters. If the name is longer than 59
characters, an Invalid Filename error is displayed. If several files are stored, each
with a long filename, memory allocated to the root directory can be exceeded
before the actual memory of storing files is exceeded. When this occurs, an
"insufficient resources or memory full" error is displayed.
8.3.6 File System Errors
Table File System Error Codes
(p. 352)
lists error codes associated with the
datalogger file system. Errors can occur when attempting to access files on any of
the available drives. All occurrences are rare, but they are most likely to occur
when using the CRD: drive.
Table 85. File System Error Codes
Error Code
Description
1
Invalid format
2
Device capabilities error
3
Unable to allocate memory for file operation
4
Max number of available files exceeded
5
No file entry exists in directory
6
Disk change occurred
7
Part of the path (subdirectory) was not found
8
File at EOF
9
Bad cluster encountered
10
No file buffer available
11
Filename too long or has bad chars
12
File in path is not a directory
13
Access permission, opening DIR or LABEL as file, or trying to open file as
DIR or mkdir existing file
14
Opening read-only file for write
15
Disk full (can't allocate new cluster)