Sorry about this post.
I figured out what my problem was. The problem was from using 4D’s old ’Select 
folder’ to pick the folder, then Convert path system to POSIX( ).
When I would try to create a FOLDER( ) from this, it said it didn’t .exist  . 
It’s because it puts a bunch of %’s in it

Switched to using the Drop technology of Get file from pasteboard( ) and such, 
and then Folder( ) worked correctly.

Sometimes it is quite a process to figure out…

— Chris

I would have REPLIED but it had been an hour and 4D iNug had still not sent me 
this message, so I couldn’t reply.

—— HAD POSTED ——

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:[email protected]
**********************************************************************

Reply via email to