Results 1 to 1 of 1
- 06-08-2011, 07:48 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 10
- Rep Power
- 0
created empty file in shared folder -- other people can't delete it
I have a shared folder on my XP machine (say, c:\root, that maps to \\foo.bar.com\root). I gave another user full access to this folder. The root also has a subfolder c:\root\subdir where I am creating an empty file. The other user has to delete this file at some point but can't do it: he's getting an "Access is denied" message.
The file is created like this:
Do I need to do something else to ensure that the user can delete them?Java Code:File trig = new File(outputFolder, "empty.file"); if (!trig.createNewFile()) { // Could not create TRIGGER file } else { trig.setWritable(true); trig.setReadable(true); // Created TRIGGER file }
By the way, I ran this tool called Process Explorer that can show if there is a process holding this file from my side. Got nothing. So it looks more like a permissions issue than a process holding the file, but I might be wrong.
Thanks!
Similar Threads
-
How to delete a .txt file if the contents is empty
By SeanC in forum New To JavaReplies: 10Last Post: 08-16-2010, 08:57 AM -
Archiving File on Shared Folder in Linux using java code
By ajmerasunny in forum Advanced JavaReplies: 1Last Post: 10-30-2009, 07:15 AM -
Folder Creation On Shared Hosting Account
By arpitgadle in forum Java ServletReplies: 2Last Post: 10-03-2009, 02:04 PM -
Access Linux shared folder from Windows OS
By nitinpjairaj in forum NetworkingReplies: 3Last Post: 08-26-2008, 06:14 PM -
how to access shared file/folder in LAN
By ksheetiz in forum NetworkingReplies: 1Last Post: 05-24-2008, 04:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks