tagged [filesystems]

NTFS performance and large volumes of files and directories

NTFS performance and large volumes of files and directories How does Windows with NTFS perform with large volumes of files and directories? Is there any guidance around limits of files or directories ...

26 Nov at 10:45

Can you call Directory.GetFiles() with multiple filters?

Can you call Directory.GetFiles() with multiple filters? I am trying to use the `Directory.GetFiles()` method to retrieve a list of files of multiple types, such as `mp3`'s and `jpg`'s. I have tried b...

15 Jan at 02:45

Path.Combine absolute with relative path strings

Path.Combine absolute with relative path strings I'm trying to join a Windows path with a relative path using [Path.Combine](http://msdn.microsoft.com/en-us/library/system.io.path.combine.aspx). Howev...

20 May at 09:42

How can I search sub-folders using glob.glob module?

How can I search sub-folders using glob.glob module? I want to open a series of subfolders in a folder and find some text files and print some lines of the text files. I am using this: But this cannot...

20 Mar at 00:36

.NET How to compare two Strings that represent filenames ignoring case correctly

.NET How to compare two Strings that represent filenames ignoring case correctly Given that (at least on NTFS) the filesystem on Windows is case insensitive, I would like to compare `String fileA` to ...

Get `df` to show updated information on FreeBSD

Get `df` to show updated information on FreeBSD I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I'm not seeing the change reflected ...

26 Aug at 18:0

Writing a user mode filesystem for windows?

Writing a user mode filesystem for windows? Is it possible to write a filesystem for Windows in pure usermode, or more specifically purely in managed code? I am thinking of something very similar to G...

11 Sep at 19:9

Does the .net framework provides async methods for working with the file-system?

Does the .net framework provides async methods for working with the file-system? Does the .net framework has an `async` built-in library/assembly which allows to work with the file system (e.g. `File....

Atomicity of File.Move

Atomicity of File.Move I want to rename a file in a directory as an atomic transaction. The file will not be changing directories. The path is provided as a UNC Path to an NTFS file system, probably o...

21 Apr at 19:2

Can I simply 'read' a file that is in use?

Can I simply 'read' a file that is in use? I am trying to use a StreamReader to read a file, but it is always in use by another process so I get this error: > The process cannot access the file '\arf...

Iterate through every file in one directory

Iterate through every file in one directory How do I write a loop in ruby so that I can execute a block of code on each file? I'm new to ruby, and I've concluded that the way to do this is a do each l...

30 Sep at 14:59

How to determine MIME type of file in android?

How to determine MIME type of file in android? Suppose I have a full path of file like:(/sdcard/tlogo.png). I want to know its mime type. I created a function for it ``` public static String getMimeTy...

15 Feb at 14:53

c# - Function to replicate the folder structure in the file path

c# - Function to replicate the folder structure in the file path I need a simple function which will take a FileInfo and a destination_directory_name as input, get the file path from the fileinfo and ...

list recursively all files and folders under the given path?

list recursively all files and folders under the given path? > [How to recursively list all the files in a directory in C#?](https://stackoverflow.com/questions/929276/how-to-recursively-list-all-the...

23 May at 11:54

How do I detect when a directory or file changes without constant scanning

How do I detect when a directory or file changes without constant scanning Other than reading all the files and comparing them with a previous snapshot, is there a way to detect when a directory chang...

8 Mar at 17:36

How do I programmatically change file permissions?

How do I programmatically change file permissions? In Java, I'm dynamically creating a set of files and I'd like to change the file permissions on these files on a linux/unix file system. I'd like to ...

9 May at 08:43

No space left on device

No space left on device I am getting the error "No space left on device" when i tried to scp some files to a centos machine, tried to check: And when I do `du -sh /` -> it gives only 5G ``` [... ~]$ d...

23 Dec at 11:23

How do I include a file over 2 directories back?

How do I include a file over 2 directories back? How do you include a file that is more than 2 directories back. I know you can use `../index.php` to include a file that is 2 directories back, but how...

13 Nov at 18:46

Browser application & local file system access

Browser application & local file system access I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures sho...

What is the best way to get the executing exe's path in .NET?

What is the best way to get the executing exe's path in .NET? From program a.exe located in c:/dir I need to open text file c:/dir/text.txt. I don't know where a.exe could be located, but text.txt wil...

29 Dec at 02:30

How do I check if a given string is a legal/valid file name under Windows?

How do I check if a given string is a legal/valid file name under Windows? I want to include a batch file rename functionality in my application. A user can type a destination filename pattern and (af...

29 Mar at 13:26

Folder management with r : Check existence of directory and create it if it doesn't exist

Folder management with r : Check existence of directory and create it if it doesn't exist I often find myself writing R scripts that generate a lot of output. I find it cleaner to put this output into...

8 Feb at 20:31

Waiting for system to delete file

Waiting for system to delete file I had a problem with refreshing file list after deleting a file. When I gave command to delete file, the exception was thrown because the refresh method tried to acce...

Transfer large data between .net applications on same computer

Transfer large data between .net applications on same computer I have two .net applications that run on the same machine. The first application is the 'Engine'. It builds images - image's size is abou...

GIT_DISCOVERY_ACROSS_FILESYSTEM not set

GIT_DISCOVERY_ACROSS_FILESYSTEM not set I have searched and read few post but my problem is not the same as described. So here's the issue: using `git clone` into folder under external partition of th...

22 Feb at 22:3