deleting folders on server with revDeleteFolder
kee.nethery at elloco.com
Sun Jul 17 12:25:52 EDT 2022
Perhaps try using something other than a period as the beginning folder name character? Could be that’s why it’s not working. Just a thought, could be totally wrong.
> On Jul 17, 2022, at 5:21 AM, Alex Tweedly via use-livecode <use-livecode at lists.runrev.com> wrote:
> Those folders are
> "." - the folder itself
> ".." - the parent of the folder itself.
> As such, neither can be deleted directly, nor do they need to be in order to delete the folder itself. The folder itself should be deleted when the current folder is set to somewhere else.
> So - there isn't really a problem, just don't try to delete them by those names.
>> On 17/07/2022 10:16, jbv via use-livecode wrote:
>> Hi list,
>> On my LC Hosting account, I have a php script that creates directories :
>> mkdir($dirname, 0755);
>> Each directory is used to temporarily store text & image files.
>> Then I have a LC script that is supposed to delete those directories
>> under certain conditions. No problem for deleting files inside each
>> directory, but 2 sub-directories are systematically created, named
>> "." and ".." and those can't be deleted, either by script of via ftp.
>> Therefore, there's no way to delete the directories created via php.
>> Last but not least, the doc for LC 9.6.8 says that "revDeleteFolder"
>> is the command to use to remove a folder and all its contents and that
>> it is available on both desktop and server platforms, but on my LC
>> hosting account I get : Handler: can't find handler (revDeleteFolder)
>> Any idea how to solve this problem ?
>> Thank you in advance.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode