directory

How to check whether files are there or not continuously in Java? [duplicate]

瘦欲@ 提交于 2019-12-13 15:33:06
问题 This question already has answers here : Watching a Directory for Changes in Java (6 answers) Closed 3 years ago . I'm planning to make a program to keep checking the directory whether files exists or not. If not then wait for some time (say 5 mins sleep) and then again checks the directory. The program must keep running and should not end. I've thought of make a multi-thread program. But don't know how exactly I can implement it. And if any other options are available then please let me know

customizing installation directory in install4j

微笑、不失礼 提交于 2019-12-13 15:03:34
问题 I am building a setup in install4j which will be run for each client of a marketing agency. There is one installer, but the user can run it more than once, specifying a different clientId value at the installation time. In the end, I would like to end up with a directory structure like this: on Mac: /Applications/MYPRODUCTNAME-clientID1/ /Applications/MYPRODUCTNAME-clientID2/ /Applications/MYPRODUCTNAME-clientID3/ on Windows: /Program Files/MYPRODUCTNAME-clientID1/ /Program Files

How to Save excel file in vb.net

老子叫甜甜 提交于 2019-12-13 14:19:28
问题 Previously , I was trying to export gridview value into excel. but with the code given below i am able to export data into excel. but still not able to Save Automatically that excel file into a fixed folder suppose in C:/ drive . The code which i have written to export into excel is given below. Private Sub ButtonExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonExport.Click Dim rowsTotal, colsTotal As Short Dim I, j, iC As Short System.Windows.Forms

Jenkins Maven Build -> Change Directory

谁说胖子不能爱 提交于 2019-12-13 12:51:42
问题 I have looked trough some posts, but couldnt find a solution to my problem. In Jenkins I have a pipeline configured with an maven project. I can run the tests locally without a problem and the test result are generated in the target folder. The problem is that the tests do not pass the Jenkins Build Process as the folder structure is different in jenkins. In the error message I see that it does not use the correct path: [ERROR] Command was /bin/sh -c cd /var/lib/jenkins/jobs/test/workspace

UWP Recursive File Search in C# is awfully slow

自作多情 提交于 2019-12-13 12:45:25
问题 I am using the following code to search recursively the images in a selected folder. I have over 120000 images in that folder (Yes, I'm a photographer!) and it is incredibly slow, for e.g. I have to stop it after 10 minutes and it's not done yet. In comparison, my Python code (interpreted!) does the same in less than 2 minutes. Is there any way to make this code more efficient? It works fine, that's ok, but only very slowly... public List<StorageFile> _allFiles; public List<StorageFile>

List of all folders and files for x depth

ぃ、小莉子 提交于 2019-12-13 12:38:35
问题 I want to have list of all folders and files for x depth. If x is 2 than I will have information about all folders and files from first folder, and all folders and files from folders in first folder. How to do this? 回答1: This code will do what other answers are doing, but also return the folder names (as that appears to be part of what you are asking). This will require .Net 4.0. If you wish to keep track of which are folders and which are files you could return a tuple containing a list of

Java: How to read directory folder, count and display no of files and copy to another folder?

佐手、 提交于 2019-12-13 12:23:00
问题 I have to read a folder, count the number of files in the folder (can be of any type), display the number of files and then copy all the files to another folder (specified). How would I proceed? 回答1: i Have to read a folder, count the number of files in the folder (can be of any type) display the number of files You can find all of this functionality in the javadocs for java.io.File and then copy all the files to another folder (specified) This is a bit more tricky. Read: Java Tutorial >

Fatal error: Uncaught Error: using graphaware for PHP

陌路散爱 提交于 2019-12-13 11:28:29
问题 I am using graphaware to connect to a neo4j graph database. I keep getting an error saying Fatal error: Uncaught Error even though I'm using the library in composer.json. Here is the code for the autoload.php: <?php /* * This file is part of the GraphAware Neo4j PHP OGM package. * * (c) GraphAware Ltd <info@graphaware.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ error_reporting(E_ALL | E_STRICT);

qt filedialog directory [duplicate]

限于喜欢 提交于 2019-12-13 11:17:12
问题 This question already has an answer here : Copy path to QString (1 answer) Closed 5 years ago . i got a QString blabla = qtfiledialog::getOpenFileName(); now blabla gives me the full path and the exe like: C:/Program Files/imanoob.exe but i only want the path like: C:/Program Files/ how to do this? 回答1: QFileInfo fileInfo(path); const QString path = fileInfo.absolutePath(); 回答2: QString getExistingDirectory to get a directory path. Or parse the returned string from getOpenFileName() by using

Allow wildcards to search for subdirectories from a parent directory? [duplicate]

荒凉一梦 提交于 2019-12-13 11:01:27
问题 This question already has answers here : How to search for a subdirectory from a parent directory? [closed] (2 answers) Closed 6 years ago . import java.io.File; import java.io.FileFilter; import java.io.IOException; public class DirectoryContents { public static void main(String[] args) throws IOException { File f = new File("."); FileFilter directoryFilter = new FileFilter() { public boolean accept(File file) { return file.isDirectory(); } }; File[] files = f.listFiles(directoryFilter); for