mkdir

access denied using mkdir and rmdir in jenkins

喜欢而已 提交于 2020-02-07 02:36:14
问题 Jenkins is generating a build of a C++ project made in Visual Studio. During the process, some .bat s are called and in one of them, there is a structure like this: SET TEMPDIR=Temp rmdir %TEMPDIR% /S /Q echo Don't continue if there was an error above (except the not found error which is ok) and go hand delete the dir! :pause mkdir %TEMPDIR% I'm not very familiar to batch scripting, but when both rmdir and mkdir are called, Jenkins gives me access denied . I looked in the build configurations

PHP mkdir(); not working

给你一囗甜甜゛ 提交于 2020-01-17 06:41:09
问题 I've been trying the function Mkdir that will be usefull in the project i'm working on. I've tried the simplest code possible but I can't get it to create the folder I want. I've tried to changes my folder permissions, but that doesn't change (Nor 755 or 777) and the code keeps returning a fail. Please have a look at my code : <?php if(!mkdir($_SERVER['DOCUMENT_ROOT'].'/uploads/2017', 0777, true)) { echo("echec"); } chmod($_SERVER['DOCUMENT_ROOT'].'/uploads/2017', 0777); ?> The parent folder

Create file failed from mkdir()

ぃ、小莉子 提交于 2020-01-16 09:18:07
问题 I try to create file in my android emulator, but when i finish my code. I can't find the file i create from android device monitor. Here is my code: try { if (Environment.getExternalStorageState() .equals(Environment.MEDIA_MOUNTED)) { System.out.println("can be read and write"); File sdFile = android.os.Environment.getExternalStorageDirectory(); //String path = sdFile.getPath() + File.separator + "DestPdf"; String path = sdFile.getPath() + "/demos/file/tmp/test"; File dirFile = new File(path)

PHP mkdir issue!

别说谁变了你拦得住时间么 提交于 2020-01-14 22:46:30
问题 I trying to create some dirs like this: @mkdir("photos/$cat/$sku", 0777, true) it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard. 回答1: This solved the issue: $a = @mkdir("photos/$cat/", 0777); @chmod("photos/$cat/", 0777); $b = @mkdir("photos/$cat/$sku/", 0777); @chmod("photos/$cat/$sku/", 0777); but why can't use recursive on mkdir? 回答2: I did this and it

PHP mkdir issue!

主宰稳场 提交于 2020-01-14 22:45:52
问题 I trying to create some dirs like this: @mkdir("photos/$cat/$sku", 0777, true) it creates the first directory with 0777 permissions, but when it creates the second is uses 000 as it's perms, so it fails to create the third. A workaround this please? Thanks, Richard. 回答1: This solved the issue: $a = @mkdir("photos/$cat/", 0777); @chmod("photos/$cat/", 0777); $b = @mkdir("photos/$cat/$sku/", 0777); @chmod("photos/$cat/$sku/", 0777); but why can't use recursive on mkdir? 回答2: I did this and it

Unable to ignore errors using psftp

不打扰是莪最后的温柔 提交于 2020-01-14 03:43:21
问题 I wish to upload all files in C:\Users\myuser\Downloads\SFTP folder on my local Windows to a remote SFTP server's myfolder directory. Below is my command: C:\putty\psftp.exe -b C:\putty\sftp_commands.txt -l myuser -pw mypass 10.8.44.86 Here is my C:\putty\sftp_commands.txt file: mkdir myfolder cd myfolder lcd "C:\Users\myuser\Downloads\SFTP" mput "C:\Users\myuser\Downloads\SFTP\*.*" Running the command gives the below permission denied error: C:\Users\myuser\Desktop>C:\putty\psftp.exe -b C:

Why can i not make a directory inside Environment.DIRECTORY_PICTURES?

社会主义新天地 提交于 2020-01-03 15:19:10
问题 This is my code File selfieLocation = new File(getExternalFilesDir(Environment.DIRECTORY_PICTURES), "Daily Selfies"); boolean isDirectory = false; if(!selfieLocation.isDirectory()) { //Creates directory named by this file selfieLocation.mkdir(); isDirectory = selfieLocation.isDirectory(); } //array of strings for(String selfiePath: selfieLocation.list()) { selfies.add(selfiePath); } Basically what I am trying to do is create my own customizable directory inside of the standard directory in

Isn't Android File.exists() case sensitive?

纵然是瞬间 提交于 2020-01-03 07:22:45
问题 I've created a new folder "sdcard/ dd " by: File album = new File(albumPath); if (album.exists()) { Log.d(TAG, albumPath + " already exists."); } else { boolean bFile = album.mkdir(); } And Again, I create the second folder "sdcard/ DD " by the same code, but, this time the album.exists() returns true, which indicates the "dd" is equals "DD". Anyone know why the File.exists() can NOT check the case of the folder name? Thanks! 回答1: While Linux, and therefore also Android, normally is case

Android mkdirs() not working

帅比萌擦擦* 提交于 2020-01-02 04:41:09
问题 I''m developing my first Android application and I'v run into a problem while trying to create a directory to save recorded video files. I have a method in my main activity buttonOnClickRecord that invokes an intent to use the android camera, I'm also creating a file during this method call and I'm calling the mkdirs() method on it to create the directory to store the file. I have also implemented <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> in my Manifest.

PHP mkdir( $recursive = true ) skips last directory

百般思念 提交于 2020-01-01 08:35:21
问题 I've got the following piece of code on a PHP 5.2.4 (no safe_mode) linux server: mkdir( $path, 0777, true ); when I enter a path like: '/path/to/create/recur/ively/' all directories are created except for the last one... when I add another directory like: '/path/to/create/recur/ively/more/' again, all paths are created except for the last one... have tried both with and without trailing slashes Can any1 enlighten me here please? 回答1: Ok the solutions is as follows: there was no problem. I did