House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cffile delete -- readonly HELP!

  << Previous Post |  RSS |  Tree View |  Sort Oldest First |  Subscribe to this Group Next >> 

cffile delete -- readonly HELP!

I did a cffile action read and then write to change the attirbs and it would Josh Trefethen 06/30/2003 05:51 PM
Have you tried changing the file so it is not read only?  For example: Mosh Teitelbaum 06/30/2003 05:41 PM
>If the file itself is marked as read-only, I suspect you'll have to change Josh Trefethen 06/30/2003 05:31 PM
> Thanks, I guess I didn't give correct info, the directory is Dave Watts 06/30/2003 05:25 PM
----- Excess quoted text cut - see Original Post for more ----- Josh Trefethen 06/30/2003 05:23 PM
----- Excess quoted text cut - see Original Post for more ----- Dave Watts 06/30/2003 05:14 PM
I am trying to delete a file on a share that is read-only and coldfusion, jtnews 06/30/2003 05:00 PM

06/30/2003 05:51 PM
Author: Josh Trefethen Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126660 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.
06/30/2003 05:41 PM
Author: Mosh Teitelbaum Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126658 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 -----
06/30/2003 05:31 PM
Author: Josh Trefethen Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126654 >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.
06/30/2003 05:25 PM
Author: Dave Watts Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126652 > 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
06/30/2003 05:23 PM
Author: Josh Trefethen Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126651 ----- 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.
06/30/2003 05:14 PM
Author: Dave Watts Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126648 ----- 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
06/30/2003 05:00 PM
Author: jtnews Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:25185#126644 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/
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference