|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
cffile delete -- readonly HELP!
I am trying to delete a file on a share that is read-only and coldfusion,jtnews 06/30/03 05:00 P Have you tried changing the file so it is not read only? For example:Mosh Teitelbaum 06/30/03 05:41 P > I am trying to delete a file on a share that is read-only andDave Watts 06/30/03 05:14 P >If the share is read-only, that implies that no one has permission to write,Josh Trefethen 06/30/03 05:23 P > Thanks, I guess I didn't give correct info, the directory isDave Watts 06/30/03 05:25 P >If the file itself is marked as read-only, I suspect you'll have to changeJosh Trefethen 06/30/03 05:31 P I am trying to delete a file on a share that is read-only and coldfusion, although it has full controll of the share, cannot delete the file. Here is the error I get when I try to delete or even write over the file: Service threw an exception during method invocation: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly. Any ideas? Thanks, Josh ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ Have you tried changing the file so it is not read only? For example: <CFFILE ACTION="Rename" SOURCE="#workingDir#\test.txt" DESTINATION="#workingDir#\test.txt" ATTRIBUTES="Normal"> -- Mosh Teitelbaum evoch, LLC Tel: (301) 942-5378 Fax: (301) 933-3651 Email: mosh.teitelbaum@evoch.com WWW: http://www.evoch.com/ ----- Excess quoted text cut - see Original Post for more ----- ----- Excess quoted text cut - see Original Post for more ----- If the share is read-only, that implies that no one has permission to write, modify or delete files through the share. Keep in mind, also, that share permissions are separate from filesystem permissions - that is, you might grant a user full control to the directory within the filesystem, yet if the share permissions are more restrictive than the filesystem permissions, the user might not be able to write or delete. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ----- Excess quoted text cut - see Original Post for more ----- Thanks, I guess I didn't give correct info, the directory is wide open, but the file itself is read-only. I can write files and delete non-read-only files, but ones that are read-only are returning an error... Also, I am deleting the file from a cfc that is called via flash remoting. I know it isn't a remoting issue however, as I have called the cfc in CF and get the same error. Status (object #2) .....code: "SERVER.PROCESSING" .....description: "Service threw an exception during method invocation: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly." .....details: "coldfusion.tagext.io.FileTag$DirFileIsReadOnlyException: The file/directory "\\estarsdev01\estarsdocs\LMSI\2002\9\32759\assignVol_dump.txt" provided as the "Destination" is ReadOnly. > Thanks, I guess I didn't give correct info, the directory is > wide open, but the file itself is read-only. I can write > files and delete non-read-only files, but ones that are > read-only are returning an error... If the file itself is marked as read-only, I suspect you'll have to change its attributes first. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 >If the file itself is marked as read-only, I suspect you'll have to change >its attributes first. yeah, tried that. I get the same error on trying to reassign the attributes. I did a cffile action read and then write to change the attirbs and it would bomb out. I just tried a rename and it worked! I wonder why you can rename and change the attribs on a file if it is read-only, but you cannot delete... Thanks for the help Dave.
|
September 09, 2010
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||