I need to know the volume name where Active4D is running.

I have some 4D methods that create folders to store uploads that
worked under our 4D v2003 implemenation but are failing under v11.
The difference isn't due to the 4D versions but appears to be a
result of the respective server disk configurations. The old xserve
has 3 distinct disks. The new xserve has 3 disks but in a RAID. As a
result 'get root' would include the volume name on the old server
but doesn't on the new setup. The get root command is used to build
a path that is passed to a 4D method that calls CREATE FOLDER. If
the volume name is included at the beginning of the path CREATE
FOLDER works. When it is missing CREATE FOLDER fails.

I need to handle this situation.

I could write a 4D method that figures out the volume name and have
Active4D call that, but I think I have found a way to get it from
Active4D using 'default directory'.

default directory => Mirrored RAID 3 Disk:Library:Application
Support:4D:com.aparajita:Active4D

default directory(*) => /Library/Application
Support/4D/com.aparajita/Active4D

Can I depend on default directory to always include the volume name
if called without a parameter?

Thanks,

Brad
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to