file-system

How to get all file attributes including author, title, mp3 tags, etc, in one sweep

I would like to write all meta data (including advanced summary properties) for my files in a windows folder to a csv file. Is there a way to collect all the attributes? I see mp3 files have a different set of attributes compared to jpg files. (c#) This can also be a script (vb, perl) Update: by looking at libextractor (thank you) I ...

root folder equivalent in windows

Is C drive treated as the root folder in windows when one says \folder1\folder2\ in linux and windows C:\folder1\folder2. ...

How can you concatenate two huge files with very little spare disk space?

Suppose that you have two huge files (several GB) that you want to concatenate together, but that you have very little spare disk space (let's say a couple hundred MB). That is, given file1 and file2, you want to end up with a single file which is the result of concatenating file1 and file2 together byte-for-byte, and delete the origina...

How to check if I can create a file in a specific folder in c#?

I need to know if I can create a file in a specific folder, but there are too many things to check such as permissions, duplicate files, etc. I'm looking for something like File.CanCreate(@"C:\myfolder\myfile.aaa"), but haven't found such a method. The only thing I thought is to try to create a dummy file and check for exceptions but th...

What tool to use to draw file tree diagram

Given a file tree - a directory with directories in it etc, what software would you recommend to create a diagram of the file-tree as a graphic file that I can embed in a word processor document I prefer vector (SVG, EPS, EMF...) files. The tool must run on Windows, but preferably cross-platform. The tool may be commercial but preferabl...

How to read and write into file using JavaScript

Hi, can anybody give the sample code to read and write the into file using JavaScript? ...

Can I stop JTree caching nodes (in a file system tree)?

I have a JTree implementation for directories in the file system. The problem I have is that when a directory is removed or renamed, the tree still shows the directory in it's parent. The parent tree seems not to be updated for any changes once a node has been expanded. The model I have written does not cache (I have commented out what...

How to have a FileSystemWatcher thread run forever?

I need to have a FileSystemWatcher run in an infinite loop to monitor a file for changes, but this file will only change every few days, and maybe only once a week. In the MSDN sample of a FileSystemWatcher, there is a loop while the user doesn't enter q at the console: while(Console.Read()!='q'); I don't want this to be constantly a...

What is the best way to check file system capacity using .Net?

What is the best way in .Net to make sure a path as capacity to store a file. I need to makes sure I have room for the file before I download is becasue the source will not allow the file to be downloaded a second time. I have looked at System.IO.DriveInfo but this does not work for UNC paths. ...

Storing files on the Cloud or the FileSystem?

Simple question, doesn't seem to have been directly asked yet. What are the benefits to storing files (images/videos/documents/etc) on Amazon S3-and-related vs. on the File System your app is deployed on? It seems that the general consensus is to store files on the File System over the Database (here and here), but where does the Cloud...

Get a list of removable drives with javascript?

My situation is this: I want to have a pop-up box open from your browser via JavaScript then I want the pop-up box to display all removable devices it can see attached to your computer, then you will be able to select and write to one etc. Is this possible? I'm pretty new to JavaScript sorry if its a silly question. ...

how to store data crawled from website

I want to crawl a website and store the content on my computer for later analysis. However my OS file system has a limit on the number of sub directories, meaning storing the original folder structure is not going to work. Suggestions? Map the URL to some filename so can store flatly? Or just shove it in a database like sqlite to avoi...

What is a simple way to get ACID transactions with persistence on the local file system (in Java)?

I'm working on a small (java) project where a website needs to maintain a (preferably comma-separated) list of registered e-mail addresses, nothing else, and be able to check if an address is in the list. I have no control over the hosting or the server's lack of database support. Prevayler seemed a good solution, but the website is a g...

Refreshing a merge module's file system references

I'm regularly facing the problem that my merge module's references get out of sync with the file system. Between two builds, the content of some directories changes. Some files get removed and some new ones appear. Is there a way to automatically refresh these references so the merge module is in sync with the file system? ...

Performance problems when loading local JSON via <script> elements in IE8

I have a web page with some JS scripts that needs to work locally, e.g. from hard disk or a CD-ROM. The scripts load JSON data from files by inserting <script> tags. This worked fine in IE6, but now in IE8 it takes an enormous amount of time: it went from "instantly" to 3-10 seconds. The main data file is 45KB large. How can I solve thi...

Extracted iPhone OS images showing as 0x0

Hi, when i try to download a image from my iPhone (Drop Pin Marker) through a FTP client the file always shows up on my desktop as width-0 height-0. It can be viewed on a internal file system viewer fine but when it gets to my desktop it has no size. Why is this and how can I open these files? ...

Which is faster/better for caching, File System or Memcached?

I don't think it's clear to me yet, is it faster to read things from a file or from memcached? Why? ...

Is it possible to read-lock a file?

I'm developing an application which checks for changes made to a file by a separate program (not written by me). If a change is detected, it opens the file, reads the last line, then closes the file. I'm using the following code to make sure my program doesn't try to lock the file, but only opens it in read mode: FileStream fs = n...

Can I have a write permission in android Read-only file system ?

Hello Everybody, Whenever I try to update framework-res.apk on system/framework folder on my G1 it gives me an error:-- failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': Read-only file system Then I tried to mount it with read write permission with this line :-- mount -o remount,rw -t yaffs2 /dev/block/mtdb...

Android Force Mount USB Storage when SD card is formatted to HFS+

I'm not exactly sure if this is the best place for this topic but here goes.. I've reformatted my Android SD card (16GB) to HFS+ format, and pushed a Mac OS X 10.6 boot image (from a .dmg file) onto the card. I did this because I don't want to go out and buy a DL DVD-R to reinstall my operating system, and because it's a nice little exp...