Ran into something similar recently.

Where <Path> = disk : Users: Databases : Specific Database folder : specific 
database : Resources : New Folder
(spacing for readability)
  
v15 -- Create folder(<path>;*) did not create 'New Folder'
there was an On Err Call routine running - it was NOT invoked.
turned it off, tried again. No New Folder, no error.
Removed the "*" - folder created.

If I get a chance I will look into it more.

> G’day,
> 
> If the following has been mentioned before - sorry for the noise.
> 
> Tested/confirmed on Mac  macOS 10.13.6 interpreted
> 
> $MyFolderHierarchy:=“MyRoot"
> Create Folder ($MyFolderHierarchy)
> 
>       creates the folder “MyRoot” at the same level as the structure file
> 
> 
> 
> $MyFolderHierarchy:=“MyRoot"
> Create Folder ($MyFolderHierarchy;*)
> 
>       does NOTHING
> 
> 
> 
> $MyFolderHierarchy:="MyRoot”+Folder separator+"Level1"+Folder 
> separator+"Level2"+Folder separator+"Level3"+Folder separator
> Create Folder ($MyFolderHierarchy;*)
> 
>       throws errors:
> 
>       Error when executing the method "_001_Test" at line number 26
> 
>       The file is locked or the pathname is not correct. (File: 
> MyRoot:Level1:Level2:Level3:)
> 
>       Error code: -45 (4DRT)
>       The file is locked or the pathname is not correct. (File: 
> MyRoot:Level1:Level2:Level3:)
>       component: '4DRT'
>       task -5, name: 'P_8'
> 
>       Error code: 652 (xbox)
>       Cannot create folder MyRoot:.
>       xtoolbox
>       task -5, name: 'P_8'
> 
>       Error code: 13 (POSX)
>       Permission denied
>       component: 'POSX'
>       task -5, name: ‘P_8'
> 
> 
> 
> $SourcePath:=Get 4D folder(Database folder)//!!!!!!!!!!
> 
> $MyFolderHierarchy:=$SourcePath+"MyRoot”+Folder 
> separator+"Level1"+Folder separator+"Level2"+Folder 
> separator+"Level3"+Folder separator
> 
> Create Folder ($MyFolderHierarchy;*)
> 
>       Will have the wanted effect ―> new folder hierarchy starting at the 
> structure level.
> 
> 
> Conclusion: It might be a good idea to use an absolute path at all times.
> 
> My 2¢
> 
> HTH
> 
> Cheers
> **********************************************************************
> 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]
> **********************************************************************
------------
Hell is other people 
     Jean-Paul Sartre
**********************************************************************
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