file-management Questions
4
Solved
Here is my code snippet:
char existingTarget[MAX_PATH];
HANDLE hFile = CreateFile(linkPath.c_str(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (INVALID_H...
Buccaneer asked 15/7, 2015 at 19:8
3
Solved
If I want to download all of the files and folder hierarchy from Jupyter Notebook as shown in the picture, do you know if there is anyway to do that by simple click other than go to every single fi...
Mescal asked 5/1, 2018 at 23:32
4
Solved
When I am analyzing data, I save my dataframes into a csv-file and use pd.to_csv() for that. However, the function (over)writes the new file, without checking whether there exists one with the same...
Intendment asked 2/11, 2016 at 8:28
3
I noticed my git repository has a lot of .keep files. They were once useful when their parent directories were otherwise empty, but since then a lot of the directories now have real children that k...
Gilda asked 7/10, 2020 at 20:26
1
Solved
I'm writing a menu bar extra that shows you a list of your installed apps and allows you to click on each button in the list to open that app. Obviously, to do this I need a list of every app the u...
Ungula asked 19/11, 2022 at 0:24
2
Solved
Now that it is possible to make non-container-bound webapps, it would make sense to be able to put the app's resources (e.g. some icons and images, perhaps a legacy database etc) into the app - per...
Gallivant asked 23/7, 2012 at 13:39
3
Solved
I've been googling and fighting this for a half a day already.
When I download something in Google Chrome I want to go to the folder with a file. But when I press 'Show in folder' a Visual Studio ...
Kinelski asked 26/12, 2018 at 14:19
6
Solved
When I use dired mode to browse around and find a file I want to open in Emacs, dired opens a new buffer for each directory I visit when looking for the file each time I select a directory with Ent...
Meridel asked 3/12, 2009 at 11:21
2
Is is possible to access remote servers in Ranger (cli) file manager using sftp/fish/... protocols, example:
sftp://user@server/home/user
Shows asked 13/2, 2016 at 11:35
7
Solved
I would like some Java code to Delete files older than N days.
Here is my attempt, but it doesn't work quite right.
public void deleteFilesOlderThanNdays(final int daysBack, final String dirWay)...
Juniorjuniority asked 28/7, 2011 at 22:48
6
Solved
I want to get the file names of all files that have a specific extension in a given folder (and recursively, its subfolders). That is, the file name (and extension), not the full file path. This is...
Whoever asked 21/6, 2012 at 14:32
3
Solved
Is there a way to rename all files in a specific folder to uppercase with batch file?
I found this code. But it renames files to lowercase. How to modify it to rename to uppercase instead?
for /f ...
Jonme asked 8/8, 2014 at 8:27
2
Solved
I recently needed to sort a one line file (integers separated by ",") into smaller chunks with memory restriction and efficiency in mind. I'm currently following this logic:
File file = new File("...
Reexamine asked 26/9, 2019 at 21:2
2
Solved
I have something like 700,000 files in a folder where I need to find and replace multiple strings with different other strings (all 4 caracters codes). It is unsure if a string is present or not in...
Handbook asked 31/1, 2015 at 15:13
3
Solved
I'm moving files on the server from one directory to another using the file manager. Is there a way to preserve file creation date/time (when it was first added to server)? Someone suggested SSH, b...
Silurian asked 27/11, 2013 at 23:53
13
Solved
Trying to remove all of the files in a certain directory gives me the follwing error:
OSError: [Errno 2] No such file or directory: '/home/me/test/*'
The code I'm running is:
import os
test =...
Picofarad asked 24/6, 2009 at 17:12
2
Solved
I'm expecting to save a lot of documents of considerable size, from 1M to potentially multiple orders of magnitude larger. I know Hashicorp's Vault is great for secret keys and smaller values. I wo...
Polecat asked 16/1, 2016 at 19:14
9
Solved
I need a quick and easy way to store files with unique file names on iOS. I need to prefix the file with a string, and then append the generated unique identifier to the end. I was hoping NSFileMan...
Mckinney asked 13/10, 2011 at 19:11
10
Solved
I am trying to remove a large number of files from a location (by large I mean over 100000), whereby the action is initated from a web page. Obviously I could just use
string[] files = System.IO....
Valerle asked 2/2, 2010 at 16:43
1
my app needs to create files (e.g. .txt files) and directory to catalogue that file, that have to be stored in the phone.
Running the app, I would create a specific directory, and a specific ...
Jumbled asked 22/1, 2018 at 17:39
1
I'm working on small project in java, there I want to fetch the contents from a database and write them into a PDF file.
I tried to googling and came up with iText Library.
Can anyone guide to c...
Radiopaque asked 17/9, 2017 at 11:58
1
Solved
It looks like on Cocoa there are many ways to move file/folder-directory to Trash:
[[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation]
[[NSWorkspace sharedWorkspace]...
Murmurous asked 2/12, 2015 at 3:54
1
Solved
If you locally save a HTML page using Firefox or MS Internet Explorer you will get a HTML file and a sidecar folder containing images that belongs to the page.
If you move the HTML file using Wind...
Grigg asked 15/6, 2013 at 9:47
9
Solved
I need to replace some images in my application. As a result I deleted them from Xcode and now when I try to add them again I get this error:
and I am sure that that file does not exist in the pr...
Lazaro asked 1/9, 2011 at 19:10
5
Solved
Can anyone help me to make the contents of my Documents directory secure?
Maxson asked 19/9, 2011 at 12:55
1 Next >
© 2022 - 2025 — McMap. All rights reserved.