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
224
votes
6 answers

What's the fastest way to delete a large folder in Windows?

I want to delete a folder that contains thousands of files and folders. If I use Windows Explorer to delete the folder it can take 10-15 minutes (not always, but often). Is there a faster way in Windows to delete folders? Other details: I don't…
BrezzaP
  • 2,463
  • 3
  • 15
  • 10
72
votes
3 answers

How to preserve files original creation date?

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, but I'm not very familiar with it. Does anyone have…
Kakenx
  • 1,315
  • 3
  • 18
  • 34
67
votes
6 answers

How to get list of files with a specific extension in a given folder?

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 incredibly simple in languages like Python, but…
Jim
  • 4,509
  • 16
  • 50
  • 80
61
votes
13 answers

Remove all files in a directory

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 = "/home/me/test/*" os.remove(test)
Kelvin
  • 725
  • 1
  • 6
  • 11
57
votes
6 answers

How do I stop emacs dired mode from opening so many buffers?

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 Enter, which means I can end up with a lot of buffers I…
David Webb
  • 190,537
  • 57
  • 313
  • 299
45
votes
9 answers

NSFileManager unique file names

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 NSFileManager had some convenient method to do this, but I…
spentak
  • 4,627
  • 15
  • 62
  • 90
36
votes
4 answers

Pandas to_csv() checking for overwrite

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 name. Is there a way to check whether the file…
32
votes
3 answers

How to add js file to my xcode project?

I add some js and css files in my xcode left project tree. but when I build this project , I got the warning : no rule to process file '$(PROJECT_DIR)/js/builder.js' of type sourcecode.javascript for architecture i386 I think if I lost some setting…
jin
  • 2,145
  • 5
  • 27
  • 44
24
votes
5 answers

Rename file in Cocoa?

How would I rename a file, keeping the file in the same directory? I have a string containing a full path to a file, and a string containing a the new filename (and no path), for example: NSString *old_filepath =…
dbr
  • 165,801
  • 69
  • 278
  • 343
17
votes
3 answers

How to download all files and folder hierarchy from Jupyter Notebook?

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 file in every folder to open the file and click…
Jason
  • 3,166
  • 3
  • 20
  • 37
17
votes
1 answer

Adding a folder to Xcode project

I have a folder full of files on my iPhone app which I want to use, but Xcode will not let me add folders to the bundle, only its files. I can't do this because I want it to be a bit more convenient, so I can reference the folder in my code. So, how…
Romejanic
  • 419
  • 1
  • 4
  • 9
16
votes
10 answers

Delete a large number (>100K) of files with c# whilst maintaining performance in a web application?

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.Directory.GetFiles("path with files to…
Aim Kai
  • 2,934
  • 1
  • 22
  • 34
15
votes
6 answers

Tips for managing a large number of files?

There are some very good questions here on SO about file management and storing within a large project. Storing Images in DB - Yea or Nay? Would you store binary data in database or in file system? The first one having some great insights and in…
Ólafur Waage
  • 68,817
  • 22
  • 142
  • 198
15
votes
5 answers

Searching directories for tons of files?

I'm using MSVE, and I have my own tiles I'm displaying in layers on top. Problem is, there's a ton of them, and they're on a network server. In certain directories, there are something on the order of 30,000+ files. Initially I called…
Adam V
  • 6,256
  • 3
  • 40
  • 52
13
votes
4 answers

Where does Visual Studio search for txt files when conducting file management operations?

I know this is a noob question, but I've worked with Python before and when you wanted to simply access a .txt file for example, all you had to do was make sure the txt file was in the same directory. I have the following C++ code below but it's not…
Josh Bradley
  • 4,630
  • 13
  • 54
  • 79
1
2 3
35 36