Name: dgC58589 Date: 01/23/98
The ability to find out if other application code has handles to a file would be helpfull.
(Review ID: 23459)
======================================================================
The motivation for this RFE seems to have been to workaround the issue that Windows does not allow files to be deleted unless the FILE_SHARE_DELETE sharing option is used, and the File#delete method doesn't provide any exception when the delete fails. Adding a method that tells if the file is in use by another application isn't the right solution and is clearly not feasible on many operating systems and configurations. For example, if the file is on a remote file system then it may not be possible to determine if the file is open or not.
The ability to find out if other application code has handles to a file would be helpfull.
(Review ID: 23459)
======================================================================
The motivation for this RFE seems to have been to workaround the issue that Windows does not allow files to be deleted unless the FILE_SHARE_DELETE sharing option is used, and the File#delete method doesn't provide any exception when the delete fails. Adding a method that tells if the file is in use by another application isn't the right solution and is clearly not feasible on many operating systems and configurations. For example, if the file is on a remote file system then it may not be possible to determine if the file is open or not.