Questions tagged [file-management]

File Management relates to the efficient control over, usage of and access to files by users and computer operating systems

File Management topics covered by this tag include

  • Popular computer operating systems
  • Project management software and processes
  • Web server caching algoritms
  • Software development tools, such as XCode and phpCake
538 questions
12
votes
9 answers

Trying to add files, get error message: The operation couldn't be completed. File exists

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 project because I just deleted it. Also when I try to…
Tono Nam
  • 34,064
  • 78
  • 298
  • 470
12
votes
1 answer

How to expand ms-explorer to automatically handle "connected files" / sidecar files / xmp belonging to jpg?

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 Windows Explorer the related sidecar folder is moved,…
k3b
  • 14,517
  • 7
  • 53
  • 85
10
votes
12 answers

Best way to store/retrieve millions of files when their meta-data is in a SQL Database

I have a process that's going to initially generate 3-4 million PDF files, and continue at the rate of 80K/day. They'll be pretty small (50K) each, but what I'm worried about is how to manage the total mass of files I'm generating for easy lookup.…
SqlRyan
  • 33,116
  • 33
  • 114
  • 199
9
votes
2 answers

Ranger file manager - Access remote server?

Is is possible to access remote servers in Ranger (cli) file manager using sftp/fish/... protocols, example: sftp://user@server/home/user
nexayq
  • 606
  • 1
  • 9
  • 13
9
votes
1 answer

Properly move an object to the Trash

It looks like on Cocoa there are many ways to move file/folder-directory to Trash: [[[NSWorkspace sharedWorkspace] performFileOperation:NSWorkspaceRecycleOperation] [[NSWorkspace sharedWorkspace] recycleURLs:] [NSFileManager…
Igor
  • 5,620
  • 11
  • 51
  • 103
9
votes
2 answers

Elegant way to store resources (icons, images etc) for a Google Apps Script webapp

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 - perhaps in a similar way that you can add further .gs…
BruceM
  • 1,549
  • 1
  • 18
  • 41
8
votes
5 answers

dired mode single window? (emacs)

is there a way to have dired operate in a single window so that when I traverse through directories I don't have n number of dired buffers for the intermediate directories? However - if I start another dired buffer in a completely separate directory…
hatmatrix
  • 42,883
  • 45
  • 137
  • 231
7
votes
7 answers

Java Delete files older than N days

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) { System.out.println(dirWay); …
user549432
  • 137
  • 2
  • 8
  • 20
7
votes
2 answers

Split huge file of integers (in one line) into sorted chunks with memory restriction

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("bigfile.txt"); FileInputStream fis = new…
7
votes
1 answer

Save/load files in app with Swift 4

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 .txt file that will be saved internally. I come from…
Zelota91
  • 71
  • 1
  • 1
  • 2
7
votes
2 answers

Hashicorp Vault for file storage?

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 would love to get the "glass break" functionality and…
7
votes
3 answers

Rename all files in folder to uppercase with batch

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 "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f"…
rikket
  • 2,357
  • 7
  • 46
  • 74
7
votes
1 answer

Copy files while preserving original file information (creation time etc.)

In order to ease the manual copying of large file amounts, I often use FreeFileSync. I noticed that it preserves the original file information such as when a file was created, last modified etc. Now I need to regularly copy tons of files in batch…
Rappster
  • 12,762
  • 7
  • 71
  • 120
6
votes
5 answers

Secure contents in Documents directory

Can anyone help me to make the contents of my Documents directory secure?
Jatin Patel - JP
  • 3,725
  • 2
  • 21
  • 43
6
votes
2 answers

Get size of file in windows

I have found this function GetFileSizeEx(), which returns the size of file in PLARGE_INTEGER that is formed by the union of structures. typedef union _LARGE_INTEGER { struct { DWORD LowPart; LONG HighPart; } ; struct { DWORD…
Jason
  • 115
  • 1
  • 4
1
2
3
35 36