1
голосов
2ответов
74 просмотров

Can I create an inheritance-based filesystem in my webapp?

I have an app that contains different "skins", and most of these skins share the same images. For each skin, we have been creating a copy of the image directory, just in case one of the files is different. Is there something like object oriented inheritance for an IIS directory? Meaning if a fil...

4
голосов
5ответов
6132 просмотров

How do I explain my colleagues that filenames should not contain uppercase characters or special characters?

For what I know, it's best practice to name files like this: file_name.txt - or if you want to file-name.txt. Now some people seem to like to name their files fileName.txt or FILENAME.TXT or "File Name.txt" - how do explain them that it's not a good idea? Why exactly is the aforementioned file n...

4
голосов
3ответов
671 просмотров

Is ASCII "../" the only byte sequence that indicates a directory traversal in PHP?

I have a PHP app that uses a $_GET parameter to select JS/CSS files on the filesystem. If I deny all requests in which the input string contains ./, \ or a byte outside the visible 7-bit ASCII range, is this sufficient to prevent parent directory traversals when the path is passed to PHP's under...

5
голосов
1ответов
10485 просмотров

CreateFile with the FILE_FLAG_DELETE_ON_CLOSE flag

Before I describe my problem, here is a description of the program (IHExplorer.exe) I'm writting: This is a C++ application. The IHExplorer application is to look as much like a Windows Explorer window as possible. With one exception, and that is that launching files from within this Explorer w...

8
голосов
4ответов
3387 просмотров

Storing Large Number Of Files in File-System

I have millions of audio files, generated based on GUId (http://en.wikipedia.org/wiki/Globally_Unique_Identifier). How can I store these files in the file-system so that I can efficiently add more files in the same file-system and can search for a particular file efficiently. Also it should be sc...

5
голосов
4ответов
12359 просмотров

What is a database file system?

I have a very little idea about what database file system is. Can somebody out here explain to me what actually a database file system is, and what its applications are? How is it different from a conventional file system? How I can build it?

72
голосов
2ответов
42361 просмотров

How can I get a writable path on the iPhone?

I am posting this question because I had a complete answer for this written out for another post, when I found it did not apply to the original but I thought was too useful to waste. Thus I have also made this a community wiki, so that others may flesh out question and answer(s). If you find th...

0
голосов
1ответов
110 просмотров

Can't find the path!

I'm currently developing an collage application for iPhone and I've now at the point of saving the image and I therefore need the correct path so that the images shows in your image library. Does anyone know the address to the path? BR, drisse

1
голосов
2ответов
816 просмотров

Custom Prefetch

Any programmatic techniques, portable or specific to NT and Linux that get the result of number of large files loading faster? I am after a 'ahead of time', a prior, whatever you prefer to call it mechanisms that I can control in code for two OS in a question. Each file has to be processed in f...

4
голосов
9ответов
1230 просмотров

Reading huge amounts of small files in sequence

I have this problem: I have a collection of small files that are about 2000 bytes large each (they are all the exact same size) and there are about ~100.000 of em which equals about 200 megabytes of space. I need to be able to, in real time, select a range in these files. Say file 1000 to 1100 (1...

6
голосов
2ответов
6273 просмотров

How do I create a directory within the current working directory, in Java

What is the most succinct way to create a directory called "Foo" underneath the current working directory of my Java application (if it does not already exist)? Or, a slightly different angle: What is the Java equivalent of Directory.CreateDirectory("Foo") in .NET?

34
голосов
5ответов
26824 просмотров

How to register FUSE filesystem type with mount(8) and fstab?

I've written a small FUSE-based filesystem and now the only part's missing is that I want to register it with fstab(5) to auto-mount it on system startup and/or manually mount it with just mount /srv/virtual-db. How can I achieve this? I know, I can just run /usr/bin/vdbfs.py /srv/virtual-db fro...

1
голосов
1ответов
1554 просмотров

How can I crawl pdf files that are served on internet using Nutch-1.0 using http protocol

I want to know How can I crawl pdf files that are served on internet using Nutch-1.0 using http protocol I am able to do it on local file systems using file:// protocol but not http protocol

0
голосов
1ответов
130 просмотров

file reallocation tool for ntfs

I have an XP Virtual Machine and some of the files on the disk are allocated after a long free space, so when i try to reduce the size of the harddisk file of the VM. I tried to defrag the disk but it jus put most of the file at the first sectors of the disk and left the other files almost at th...

1
голосов
2ответов
162 просмотров

how to write back to an existing file, ensuring the bits on the disk get overwritten in OS X

What API's Cocoa or Core Foundation, can I use to make sure that when I write back to a file that already exists on the storage device, that the bits get written over? The idea is to clear out the bits for security reasons.

33
голосов
9ответов
38351 просмотров

How do I use filesystem functions in PHP, using UTF-8 strings?

I can't use mkdir to create folders with UTF-8 characters: <?php $dir_name = "Depósito"; mkdir($dir_name); ?> when I browse this folder in Windows Explorer, the folder name looks like this: Depósito What should I do? I'm using php5

6
голосов
3ответов
3080 просмотров

How do I write to a file immediately?

I want to keep a logfile, and I am using TextWriter/StreamWriter to write messages to my logfile. I call TextWriter.Flush() after writing the message, but my message still doesn't show up right away. It only shows up when I call Close, and I would rather not reopen and close the file all of the t...

3
голосов
1ответов
2021 просмотров

Fuse Filesystem Problem

i'm developing a fuse filesystem that stores data in the RAM, but i'm having problems when i write something to a file. The file turns into a blank file. Here's the code: #define FUSE_USE_VERSION 26 #include <fuse/fuse.h> #include <string.h> #include <errno.h> #include <st...

6
голосов
3ответов
4663 просмотров

List all drives/partitions, and get /dev/rdisc device with Cocoa

Is there a way to list available drives, similar to Disk Utility, and get the associated /dev/rdisk* device for it? Disk Utility has access to this data - when you select a drive and press the Info button, it lists.. Partition Map Scheme : GUID Partition Table Disk Identifier : disk0 Media Name...

2
голосов
3ответов
470 просмотров

Determining the physical location of a file and the device status in Java

I'm writing a program that has to mantain a large catalog of files. Those may be on different devices and I'd like to know what is the best way to do this in Java. I mean that I need to: Identify the device the file (or just a directory) is on and get a name or identifier for this device that w...

0
голосов
1ответов
3647 просмотров

How to set file comment in c#

How to set any file comment, author information from c#?

2
голосов
1ответов
685 просмотров

How to generate download file name?

I'm creating asp.net special file manager. all file information saved to SQL Server table. My table is here Table tFile( FileID uniqueidentifier, FileName nvarchar(50), Extension nvarchar(50)) Upload process is: First i'm insert table row and then upload file to server. Then file renamed to Fi...

0
голосов
2ответов
54 просмотров

Arbitrary sort key in filesystem

I have a pet project where I build a text-to-HTML translator. I keep the content and the converted output in a directory tree, mirroring the structure via the filesystem hierachy. Chapters go into directories and subchapters go into subdirectories. I get the chapter headings from the directory an...

4
голосов
5ответов
237 просмотров

Strange, possible “shadow copy” issue where two editors show different contents

I have some code that is reading a config file, but when I open the file in TextPad, I see different values than my application does. I checked it with Notepad. Notepad agrees with my application, TextPad shows something else. This is on Vista x64 Business. Any idea what could be causing this...

2
голосов
3ответов
1777 просмотров

Recursively search directories in C#

I need to recursively traverse directories in C#. I'm doing something like this. But it throws exception when iterating through system folders. How to check it before exception is thrown?

2
голосов
1ответов
224 просмотров

How to determine allocated blocks on an NTFS disk

Is there a way of determining which clusters on an NTFS disk are allocated? I'm thinking along the lines of the display you see on a defrag program before you kick off the defrag itself. I guess you could parse the MFT but it strikes me that this could take a long time on a system with potential...

14
голосов
2ответов
3440 просмотров

Keep a reference to a file after it has moved in objective-c?

I have a Cocoa application that stores a reference to multimedia files (images, videos, etc) on the user's computer. I'm wondering if there is a way to get a reference to that file other that using a file path so that if the user moves that file to a different folder on their computer, I would s...

3
голосов
2ответов
1139 просмотров

Path Simplification/Reduction

I'm writing some code to manage a custom on disk file structure and syncronize it to unconnected systems. One of my requirements is to be able to estimate the size of a sync prior to actually generating the sync content. As a simple solution, I've put together a map with full path filenames as ...

1
голосов
3ответов
296 просмотров

Is it correct that "Developers have read-only access to the filesystem on App Engine"?

According to this Wikipedia article on Google App Engine: Developers have read-only access to the filesystem on App Engine. I have heard of App Engine apps that allow uploads and Google also sells additional storage - if so, wouldn't this statement appear to be incorrect?

3
голосов
6ответов
2752 просмотров

simple VirtualFilesystem for delphi - must be FREE!

my application stores infos about some files analyzed in given directory... it produces one file for each file found in a directory, so it could be any number ... I need to store those produced files separately, but it's not the best idea to put them like it is ... so I'm looking for some virtual...