Using the “File and Folder” theme of commands, I need to get a FOLDER OBJECT 
for a FILE OBJECT. I would have thought it would be file.parent (similar to 
folder.parent). But there seems no easy way to get the folder object.

We have:
$obj_File:= File( PathName ).
The resulting $obj_File, however, has no attribute for the folder that owns it!

A FOLDER object has   $obj_Folder.parent

But a FILE OBJECT should also have a .parent attribute, which should be its 
owning folder!

Any way to convert a FILE OBJECT to a FOLDER OBJECT?

I started a method for it, but that seems insane; surely 4D already has a 
simple way to get the FOLDER of a FILE ??

Thanks,

Chris
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to