Questions tagged [mkdirs]
87 questions
0
votes
1 answer
Kotlin Android create new Directory
I know the question has been asked a number of times, but I can't find a suitable solution.
But I also think that a new approach is taken with each version.
I'm currently trying to create an app that will record a counter and an audio file.
This…

DickDaniel67
- 1
- 1
0
votes
1 answer
how to create a directory with datestamp as its filename in jenkins pipeline?
bat 'set OutputFolderName=%date:~12,2%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%%time:~6,2%'
bat 'mkdir %OutputFolderName%'
These two commands should give the correct output but they aren't working.
This is the error I got:

Will
- 3
- 3
0
votes
2 answers
unusual error in Directory Creation
I have been trying to fix an issue since yesterday but no luck yet. I made a very simple android application to create directory and the application was working fine. The main source code is mentioned here.
@Override
public void onCreate(Bundle…

Farhan Khurshid
- 5
- 3
0
votes
0 answers
java.io.FileNotFoundException: (The system cannot contact a domain controller to service the authentication request. Please try again later)
I was runnning a jar file in a remote server when this error occurred:
java.io.FileNotFoundException: \\remoteServer2\foo\bazz\bar\myFile.pdf (The system cannot contact a domain controller to service the authentication request. Please try again…

Need2learn
- 41
- 1
- 9
0
votes
1 answer
Loop through folders and create new subfolders for each then move images in Python
Let's say I have a folder which has subfolders project1, project2, project3, ... in it.
In each of project, I have subfolders fixedly named process, progress and session in it, inside those subfolders, there are also other subfolders and image…

ah bon
- 9,293
- 12
- 65
- 148
0
votes
2 answers
Can't create a folder in external storage, Android
I tried a lot to find a solution but everything has failed so far. It's probably something stupid.
I'm trying to save a photo as a jpeg in the storage of the phone. Everything fails even the simple task of making a folder. The code below is what I…

mremremre1
- 1,036
- 3
- 16
- 34
0
votes
1 answer
I am unable to create a folder for my app within my external storage
In the beginning the code was working perfectly. But when I deleted the file from my internal storage to test the code it stopped working and every time it is returning 'false' from the mkdirs() function.
I reinstalled the app several times, cleared…

Avirup Ghosh
- 171
- 1
- 5
0
votes
1 answer
mkdirs returns false in some device
This code works for me but it is reported in fabric crashlytics not work on some devices and actually mkdirs retrun false I checked already the dir.exists() before .
File dir = new…

emad pirayesh
- 654
- 7
- 12
0
votes
1 answer
mkdirs() is getting executed successfully but the folder is not visible in Honor 9i
I am trying to create a folder and subfolder namely "CJI/Export" in "Internal Memory" using the following code. To ensure that the command is successfully executed, I have added Toast Messages in all states.
I tried running the code on two devices:…
0
votes
1 answer
Flask Python mkdirs returns "Permission denied" over mounted drive
I have an app that creates directories on a mounted SMB network drive, but the app is returning "Permission denied" errors. If I run the same code locally as sudo it works just fine.
I'm utilizing Gunicorn, Supervisor, & Nginx on the server and…

Berkyjay
- 158
- 1
- 1
- 10
0
votes
0 answers
Java create directories and delete files which should be directories
I want to create a directory path in Java using the File#mkdirs() method. Let's consider the path "example/example/example". new File("example/example/example").mkdirs() creates the directories. However, if new File("example/example").exists() &&…

stonar96
- 1,359
- 2
- 11
- 39
0
votes
0 answers
Why mkdirs() sometimes returns false - error creating foler
I get crashes on my App. I see them in Crashlytics (couldn't reproduce on my devices).
The problem - can't create folder in External Storage using mkdirs()
Note: the code works in 99% of cases (users) and the problem appears only in 1%.
I do have a…

Shmuel
- 488
- 1
- 6
- 18
0
votes
1 answer
Using Git Hook post-flow-feature-start on window, create a directory with the name of the feature
I need to create a directory named after the branch name created with the git command .
So I was planning to use post-flow-feature-start hook to excute a MKdir command but I can't find a way to get the name of branch in variable to pas to the Mkdir…

Bernie
- 23
- 5
0
votes
3 answers
mkdir() is not creating a new directory
I have included
and I want to save image.
But before that I wanted to check that is it creating directory or not and it is not. I am using File Explorer to check that is…

Parth Kabariya
- 53
- 11
0
votes
1 answer
mkdirs not working in android studio avd
I am using Android studio 2.3.3. when use USB Device directory is created. But in emulator no directory is created.
Code:
String SDK= Environment.getExternalStorageDirectory().getAbsolutePath();
String DB=SDK+"/MathEdu/DataBase";
File file=new…

yahya
- 1
- 1
- 2