I'm working on a VB.NET program that will automatically backup my work to my FTP server. So far I am able to upload a single file, by specifying a file name using this:
'relevant part - above is where FTP object is instantiated
Dim _FileStream As System.IO.FileStream = _FileInfo.OpenRead()
Try
'S...
JRE 6, on Windows XP.
Instanciating two File objects with different constructors leads to inconsistent results in the File.exists() method.
Disclaimer : the code below is an abstract, not the actual code. I do not believe this is a File.separator issue at all. I first asked to get early reactions, in case I missed a well understood iss...
If I have two DirectoryInfo objects, how can I compare them for semantic equality? For example, the following paths should all be considered equal to C:\temp:
C:\temp
C:\temp\
C:\temp\.
C:\temp\x\..\..\temp\.
The following may or may not be equal to C:\temp:
\temp if the current working directory is on drive C:\
temp if the curren...
I have a program that is very heavily hitting the file system, reading and writing to a set of working files. The files are several gigabytes in size, but not so large as to not fit on a RAM-disk. The machines this program runs on are typically Ubuntu Linux boxes.
Is there a way to configure the file manager to have a very very large...
I am building a web app with this directory structure:
app/
__init__.py
config/
__init__.py
db_config.py
models/
__init__.py
model.py
datasources/
__init__.py
database.py
...
...
Every __init__.py file has
__all__ = ['', '', ...]
in it, listing the...
I am trying to use test-driven development for an application that has to read a lot of data from disk. The problem is that the data is organized on the filesystem in a somewhat complex directory structure (not my fault). The methods I'm testing will need to see that a large number of files exist in several different directories in order...
I develop some PHP project on Linux platform. Are there any disadvantages of putting several thousand images (files) in one directory? This is closed set which won't grow. The alternative would be to separate this files using directory structure based on some ID (this way there would be let's say only 100 in one directory).
I ask this q...
The C routines opendir(), readdir() and closedir() provide a way for me to traverse a directory structure. However, each dirent structure returned by readdir() does not seem to provide a useful way for me to obtain the set of pointers to DIR that I would need to recurse into the directory subdirectories.
Of course, they give me the name...
How do I get the list of all the files in a directory? It should give me only files, and it should search through all the subdirectories, and the directories inside them etc. Basically the entire folder structure.
I have thousands of files and directories. I wrote a recursive function, but it is super slow. Is there any command or...
I'm not sure what the "general" name of something like this might be. I'm looking for a library that gives me a file format to store different types of binary data in an expanding single file.
open source, non-GPL (LGPL ok)
C interface
the file format is a single file
multiple files within using a POSIX-like file API (or multiple "blob...
I'm developing web app that user can save his/her work to server. The data will be saved is in variable-length binary form, it's size mostly under 20KB (sometimes little bigger < 100KB). The data will often be changed / updated.
I have 2 options saving the data in server: as BLOB (mysql) or as filesystem with reference to its filepath s...
I want to make a webapplication in witch there will be some users with different projects (like c project, c++ project so on). My question is that how should I build up my 3 tables: users,projects,files? One user can have many projects (there will be shared projects too), the projects can have folders(packages) and files, but on the file...
How would I list all the files and folders in a folder alphabetically with PHP. I used the following for the files a.txt, b.txt, c, d.txt. Where c is a folder.
The problem is that c is displayed last instead of after b.txt because it is a folder.
I'd also like to be able to check if each is either a file or folder.
<?php
$dir = open...
Which is the best way do delete a file on FAT32 file system securely (i.e. make it impossible to recover the file). Is overwriting the file with garbage and then deleting it secure? Could anyone suggest a good reading on this?
...
I can't think of an example where the reference count of a file may not be zero even when it is no longer possible to refer a directory or file.
The only example that I could find for a general graph directory structure is this:
(Node 1 would be the north node, Node 2 would be the node Node 1 is pointing too, and so on and so forth)...
Is there an equivalent command on windows for the UNIX/Linux sync command? I need to verify all writes caches have been flushed to disk system wide on an as needed basis. I don't want to disable write caching on the hard drives.
...
i am working on a website which deploy on web farms to serve high traffic.
where should i store user uploaded files? is it wise to store uploaded files in the file system of the same website and synchronize these files in all web servers(web farm)? or should i use another server to store all uploaded files in this server to store files i...
Given the following BPB:
The "MSWIN4.1" string is just the "OEM ID" field, and by Microsoft documentation it should not be used to identify FAT volumes.
The "FAT32 " string is the BS_FilSysType field, and by Microsoft documentation it should not be used to identify FAT volumes either.
So how do i identify that the volume is format...
What should I write into the .bat file for it to find all files with same names in folder (and it's sub folders) and replace them with file from another file (from another folder)?
Is there any fast way if we have 1 000 000 folders with nearely 10 000 files for replacement?
...
I'm trying to write an image to disk:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsPath = [paths objectAtIndex:0];
NSString* savePath = [documentsPath stringByAppendingPathComponent:@"photo"];
BOOL result = [data writeToFile:savePath atomically:YES];...