473,385 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

BUG or BY DESIGN? Filehandling on .NET is not windows compatible for NTFS and FAT

Hi,

On the file handling methods, if you are dealing with files (Windows
filesystem is case INSENSITIVE) yet when you specify file A.BLAH and its
a.blah on windows, you get FileNotFoundException.

If this by design for cross platform and different file systems or a bug?
Shouldnt this be defaulting to INSENSITIVE instead of SENSITIVE on windows
NTFS (for FATxx for that matter)?

Thanks.
Nov 15 '05 #1
6 1236
wrote:
On the file handling methods, if you are dealing with files (Windows
filesystem is case INSENSITIVE) yet when you specify file A.BLAH and
its a.blah on windows, you get FileNotFoundException.

If this by design for cross platform and different file systems or a
bug?
Shouldnt this be defaulting to INSENSITIVE instead of SENSITIVE on
windows NTFS (for FATxx for that matter)?


Please provide an example...
For me it is not reproducable...

--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.codeproject.com/tools/leakfinder.asp
Nov 15 '05 #2
It depends om File system
NTFS is case-preserving file system - it distinguishes between files with same name in different cases
Fat is not case preserving.
Nov 15 '05 #3
On NTFS I have the same file returned for A.txt and a.txt so how is NTFS
preserving that when infact it doesnt (at least publically) differentiate
between them?
"Yura2000" <yu***@clal-ins.co.il> wrote in message
news:DA**********************************@microsof t.com...
It depends om File system:
NTFS is case-preserving file system - it distinguishes between files with same name in different cases. Fat is not case preserving.

Nov 15 '05 #4
Actually, I don't think it's very case sensitive, but it stores case
information in the filename.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Nov 15 '05 #5
Pracices and theory are not things that go together, by Microsoft :-)
By Microsoft, NTFS supports POSIX, so README.txt and readme.txt are different files.
In the reallity , you cannot create these files in the same directory on your hard drive.
Nov 15 '05 #6
> In the reallity , you cannot create these files in the same directory on
your hard drive.

Unless you're using the POSIX sub-system. The old version of the MS proxy
server seems to have been doing that, because backing its cache up often
failed due to "duplicate" filenames.
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Georgy Pruss | last post by:
On Windows XP glob.glob doesn't work properly for files without extensions. E.g. C:\Temp contains 4 files: 2 with extensions, 2 without. C:\Temp>dir /b * aaaaa.aaa bbbbb.bbb ccccc ddddd ...
1
by: | last post by:
Hi, On the file handling methods, if you are dealing with files (Windows filesystem is case INSENSITIVE) yet when you specify file A.BLAH and its a.blah on windows, you get...
5
by: Norman Fritag | last post by:
Hi there, The Problem: I can't write data to an access database in a webfolder of a windows Prof 2000 machine, whereas the same web application runs fine under Windows XP. I looked into the...
9
by: orljustin | last post by:
Hi, I'm trying to check the existance of a file in Windows 2000 by opneing am fstream and seeing if it is open. However, it seems that the executable doesn't care about case. ie, if I am...
4
by: NWx | last post by:
Hi, I developed a small test app using ASP.NET. I left the vistual folder to be accessible only with windows integrated security. I try to access that app from another PC in my LAN. I don't have...
17
by: Jon B | last post by:
Hi All! I have a ASP.NET 2.0 site that works on the Windows 2000 Server. However, when I tried to view this site on my local Windows XP machine, I get "Server Unavailable". If I switch the...
4
by: Michael A. Covington | last post by:
I'm developing an application that will handle files in groups of 4, namely 3 video files plus a script saying how to put them together. These are all files that I will deliver with the app, so I...
8
by: Claudio Grondi | last post by:
Here an example of what I mean (Python 2.4.2, IDLE 1.1.2, Windows XP SP2, NTFS file system, 80 GByte large file): Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel-...
13
by: ragtag99 | last post by:
I posted this on comp.lang.asm.x86, alt.os.development, comp.arch, comp.lang.c++ Im working with windows xp professional, NTFS and programming with MASM, c++ (free compiler) or visual basic 6.0...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.