file-access Questions
4
Solved
I keep getting that exception in my program. How do I know which process locked it, either by program code or by doing something with windows?
System.IO.IOException : The process cannot access the...
Pampuch asked 2/8, 2010 at 8:30
2
I'm trying to make my python code read and write a file at the system root, so I disabled System Integrity Protection following these steps. But when I run the command sudo mount -uw / I get this e...
Zoometry asked 20/7, 2022 at 8:53
5
Solved
I have Following Code in a Page_Load called function. When the Page is loaded the first time after starting Visual Studio, everything works out fine.
But any other opening call to the File after th...
Exposed asked 19/2, 2013 at 10:58
14
Solved
Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring Adobe AIR.
Specifically, I'd like to...
Lindly asked 16/12, 2008 at 16:43
4
Solved
I need to check if I can write a file to a directory that user point to with Python.
Is there an way to check it in advance? I may be using try .. catch for this purpose, but I expect something be...
Jerrome asked 12/9, 2010 at 18:47
2
Solved
In my docker file I have below command:
USER gerrit
COPY gerrit-default-config /var/gerrit/etc/gerrit.config
Running the image I see that the file access number is 777.
Is it default value? Is t...
Sweeny asked 24/12, 2015 at 0:11
6
Is it possible to copy a file which is being using by another process at the same time?
I ask because when i am trying to copy the file using the following code an exception is raised:
System.IO...
Guillemette asked 29/5, 2011 at 10:16
3
Up until Android Pie I always stored files which the app needed to get stored on /sdcard/my-app/, which I got via
File fBaseDir = new File(Environment.getExternalStorageDirectory(), "my-app");
On...
Gisarme asked 4/9, 2019 at 12:54
3
I have three files - global.php, test.php, test1.php
Global.php
$filename;
$filename = "test";
test.php
$filename = "myfile.jpg";
echo $filename;
test1.php
echo $filename;
I can read this ...
Camacho asked 3/9, 2013 at 9:42
2
Solved
I am trying to understand flags and modes of file descriptors.
The man page for
fcntl - manipulate file descriptor
int fcntl(int fd, int cmd);
states:
File descriptor flags
The followin...
Reentry asked 20/5, 2020 at 9:44
2
Solved
I mean to use fdopen
FILE *fdopen(int fd, const char *mode);
In man pages, it is stated that "The mode of the stream (one of the values "r", "r+", "w", "w+", "a", "a+") must be compatible with t...
Stephniestepladder asked 20/5, 2020 at 9:15
1
I want to open the file "/proc/self/net/dev"
with a FileReader. In the Android 10 there comes a java.io.FileNotFoundException: /proc/self/net/dev: open failed: EACCES (Permission denied)
In older ...
Genuine asked 26/8, 2019 at 11:41
6
Basically, I would like to check if I have rights to open the file before I actually try to open it; I do not want to use a try/catch for this check unless I have to. Is there a file access propert...
Snipes asked 5/11, 2008 at 17:27
3
Solved
I get below error when write a file (file name is book) with Node.js, could you please help?
Error: EACCES: permission denied, open '/book'
at Object.openSync (fs.js:443:3)
at Object.writeFileSy...
Tristatristam asked 19/12, 2018 at 7:5
1
Solved
The documentation for the os module makes the following assertion:
Note
Using access() to check if a user is authorized to e.g. open a file before actually doing so using open() creates a secur...
Jaunitajaunt asked 5/12, 2018 at 23:2
1
Solved
I'm trying to add access rights for the user group IIS_IUSRS to a folder using PowerShell.
Currently I have
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("BUILTIN\II...
Rancid asked 20/7, 2018 at 16:59
1
Solved
I want to track a complete hard drive partition (eg. D:) but I am getting the following exception:
AccessDeniedException
java.nio.file.AccessDeniedException: D:System Volume Information
at sun.n...
Pvc asked 12/4, 2018 at 18:12
3
I have an asp.net web application with forms authentication and users (credentials) are checked against active directory, username is actually samAccountName attribute from AD.
Now I need to enable...
Civies asked 20/9, 2017 at 22:42
1
Solved
On a Windows Server 2012 R2 system, a Kotlin program uses FileChannel.tryLock() to hold an exclusive lock on a file, like this:
val fileRw = RandomAccessFile(file, "rw")
fileRw.channel.tryLock()
...
Frankhouse asked 11/8, 2017 at 23:12
9
Solved
Imagine I wish to create (or overwrite) the following file :- C:\Temp\Bar\Foo\Test.txt
Using the File.Create(..) method, this can do it.
BUT, if I don't have either one of the following folders (...
Reed asked 8/7, 2010 at 7:51
9
Solved
I am running into an issue with a FileSystemWatcher when multiple files are placed into the watched directory. I want to parse the file as soon as it is placed in the directory. Typically, the firs...
Wivinia asked 31/3, 2009 at 0:9
3
Solved
I am sorry if it's very basic or already asked before (I googled but couldn't find a simple & satisfactory explanation).
I want to know what sys.stdin.fileno() is?
I saw it in a code and didn't...
Wish asked 25/8, 2015 at 8:50
3
Solved
I am new to OSGi and created an OSGi-bundle which I run in the Apache Felix OSGi-container.
There is a file resource contained in the bundle, which I need to pass to a method as a java.io.File. To ...
Hobby asked 24/6, 2011 at 23:11
1
Solved
I have an old Windows Forms .Net application that on Windows XP was "deployed" by copying all the files to the application folder.
Now I plan to deploy to newer windows OS's using either InstallSh...
Harrumph asked 28/5, 2015 at 0:1
3
Solved
I was wondering if there is a way to secure an image or a file to be hidden when it is not authenticated.
Suppose there is an image in my website which can only be seen if that user is authenticat...
Laser asked 18/1, 2015 at 6:37
1 Next >
© 2022 - 2024 — McMap. All rights reserved.