filelock Questions
12
Solved
Using in PowerShell, how can I check if an application is locking a file?
I like to check which process/application is using the file, so that I can close it.
Valentijn asked 5/6, 2009 at 21:0
2
Solved
According to the docs, AWS EFS (Amazon Elastic File System) supports file locking:
Amazon EFS provides a file system interface and file system access semantics (such as strong data consistency a...
Fiducial asked 6/11, 2018 at 18:33
2
I use parSapply() from parallel package in R. I need to perform calculations on huge amount of data. Even in parallel it takes hours to execute, so I decided to regularly write results to a file fr...
Felicific asked 6/12, 2013 at 13:25
10
Solved
I need to know that before any attempt to do anything with such file.
Narcosis asked 9/5, 2012 at 14:27
12
Solved
We have a project that is stored within our TFS server and some files were Checked-Out by me from another computer and another user (both of which are not used anymore). Is there a way to force the...
4
Solved
I am trying to debug a problem where users occasionally have locked files which they try to open. The code appears to have correct exception handling but users are still reporting seeing error mess...
3
Solved
I have a process that will be called rather frequently from cron to read a file that has certain move related commands in it. My process needs to read and write to this data file - and keep it lock...
Brodie asked 15/2, 2010 at 21:20
1
I'm using the filelock module for Python.
On Windows, when a lock is released, the file that's backing it is deleted.
On UNIX, lock files still exist on the filesystem even after the locks are re...
6
Solved
I have this code that saves a pdf file.
FileStream fs = new FileStream(SaveLocation, FileMode.Create);
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
fs.Flush();
fs.Close();
It ...
Doris asked 19/4, 2010 at 20:0
5
Solved
I display an image using c# in a pictureBox. Then I want to change the image's name. I can't because I get that the image is being used by another process.
I open the image this way
Image image...
1
Solved
I've noticed that java.io and java.nio implementations of random access files differ slightly with respect to how FileLocks are handled.
It appears as though (on Windows) java.io gives you a manda...
Fiertz asked 2/9, 2016 at 13:5
4
Solved
I am wondering if it's possible to get a readonly FileStream to a locked file?
I now get an exception when I try to read the locked file.
using (FileStream stream = new FileStream("path", FileMode...
Tipper asked 17/5, 2011 at 18:19
12
Solved
Is there any way to check whether a file is locked without using a try/catch block?
Right now, the only way I know of is to just open the file and catch any System.IO.IOException.
1
Solved
I've installed Mediawiki v1.24.1 on my server which is running RHEL7.
I've installed it under /var/www/foohelp/wiki. However, when I try to upload a file, I get the following error:
[f3eae72a] /...
Coherent asked 16/1, 2015 at 2:41
1
Solved
I have a function which returns a PrivateFontCollection:
Public Shared Function GetCustomFonts() As PrivateFontCollection
Dim result = New PrivateFontCollection
Dim customFontFiles = {"Garamond...
Apices asked 29/10, 2014 at 22:59
2
Solved
I have multiple processes running on different machines which are required to read/write to a shared XML file, for this I am using DOM with Java and FileLocks (While I know that a database would be...
Pasho asked 27/10, 2014 at 12:29
3
Solved
I created a small Java servlet for a simple purpose: Once it is called, it will do the following steps:
Read file foo.json from the local filesystem
Process the data from the file and do some cha...
Hammers asked 28/8, 2014 at 11:55
1
Solved
I'm using IO.Directory.GetFiles to search for files in a folder. After the searching is done, I can't use files in this folder until my application is closed. I haven't found any Dispose functions ...
1
Solved
Whenever I start a Camel route from a file URI, I see that Camel obtains a "lock" on the file. For instance, if the file is named myinput.xml, then Camel creates a "lock file" on it, in the same di...
Engvall asked 31/1, 2014 at 17:34
2
Solved
First, these are my intentions:
Create a DbContext on SQLite
Read and write from/to it
Close context
Move the file to another location
Points 1-3 work perfectly. The problem starts when I try t...
Formication asked 7/6, 2013 at 8:34
2
Solved
After showing an XPS file in the WPF DocumentViewer, and closing the DocumentViewer instance, the XPS file is locked and I cannot delete it. I need to release the lock on the XPS file so I can dele...
Farthing asked 18/9, 2009 at 4:30
4
Solved
How do you go about querying running processes to find out what folders or files they have locked? (i.e. you go to eject a drive and you're told that it can't be ejected because it's in use)
I'd l...
Indistinctive asked 5/7, 2009 at 17:34
2
Solved
The StreamReader locks a text file whilst it is reading it.
Can I force the StreamReader to work in a "read-only" or "non locking" mode?
My workaround would be to copy the file to a temp location ...
Sohn asked 22/10, 2009 at 10:34
2
Solved
Can I write any InputStream into a FileChannel?
I'm using java.nio.channels.FileChannel to open a file and lock it, then writing a InputStream to the output file. The InputStream may be opened by ...
Hayne asked 8/7, 2011 at 2:53
3
Solved
So I try to locked the file to read it, but I got IOException, any idea why?
public static void main(String[] args){
File file = new File("C:\\dev\\harry\\data.txt");
FileReader fileReader = nu...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.