Productive Computing, Inc. Support Forum
File Manipulator September 10, 2010, 10:43:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
http://www.produtivecomputing.com
Pages: [1]   Go Down
  Print  
Author Topic: Can't delete folder  (Read 1515 times)
emosensei
Member
*
Posts: 2


« on: October 26, 2009, 11:32:30 AM »

Hello, all--

New File Manipulator user here (on Mac OS 10.5.8).

When I test for the existence of myFolder inside the /Volumes/ directory...
PCFM_GetFolderExists ( "/Volumes/myFolder" )
...it always returns a 0 (success).

However, when I attempt to DELETE that folder...
PCFM_FolderDelete( "/Volumes/myFolder" ) or PCFM_FolderDelete( "Macintosh HD/Volumes/myFolder" )
...I always get a result code of -5.  What am I doing wrong?

Many thanks--
« Last Edit: October 26, 2009, 11:40:47 AM by emosensei » Logged
Melinda DePalma
Administrator
Member
*****
Posts: 130


WWW
« Reply #1 on: October 26, 2009, 03:43:47 PM »

-5 indicates "unable to delete folder" and it is strange if the folder actually does exist. Please check the following:

1) Folder permissions to ensure that your user account on this machine has read/write access to delete folders in that directory.

2) Try to delete the same folder from the FileMaker demo file that comes with the plug-in. Can you successfully delete this folder from the demo file?

3) Try to delete a folder in a different location to ensure that the FolderDelete function is actually working properly on the machine.

Please let me know your results.
Logged
emosensei
Member
*
Posts: 2


« Reply #2 on: October 26, 2009, 04:56:39 PM »

Maybe the problem was due to an invisible folder named .Spotlight-V100 inside the parent folder.

drwx------   root   admin   102  Oct 23 15:09  .Spotlight-V100

Same result code (-5) using the PCFM demo file.
Other folders delete fine, I believe the plug-in is working fine.

I had to manually delete the stubborn folder shortly after my original post so I don't know what its permissions were, but I did happen to make a note of the .Spotlight-V100 folder as I was troubleshooting. Would PCFM be unable to delete the parent folder if it was owned by root and its permissions were drwx------?

If I'm able to reproduce this situation I will contact you.

Many thanks--


* Picture1.png (7.34 KB, 367x77 - viewed 136 times.)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!