Case (in)sensitive file names

Hello,
In my program I have to know if the file names in the operating system the program runs on are case sensitive or not.
Example: If "words.txt" and "Words.txt" are the same files or can be different files (suppose they are in the same directory).
I don't want to do it by checking the OS name and comparing to a list of OS's that are known to be case (in)sensitive because I want my program to be dynamic and I don't want to change it every time new OS's come out.
Does anybody know how it can be done?
Thanks.

Yes, of course I can do that, but as you said I'm
looking for a more elegant way, like reading a
property of the OS or something similar. Thanks
anyway.1) It is not that much a property of the OS but of the fily system
2) There's a list of properties available to you in the System API. If none of these helps you, you're out of luck.

Similar Messages

  • UTL_FILE & User Input: Case Sensitive File Names

    Hi.
    I'm trying to reduce problems due to the whether the user uses upper or lower case or combo of them in entering file names.
    Scenario is:
    Existing file to be read: Orig_File.Txt (file name changes daily)
    Output to be saved into file: RESULTS_FILE.TXT
    In response to PL/SQL commands (please see below), the user enters:
    ORIG_FILE.TXT and Results_FILE.txt
    as the Input & Output file names. The problem is that the input file has been saved using Upper and Lower case and I get back a file not found error.
    Is there a way to call a file with is a different case than the input?
    Thanks.
    Current commands are:
    In_File          UTL__File.file_type;
    Out_File          UTL__File.file_type;
    Curr_Line     VarChar2(2000);
    BEGIN
    In_File := UTL__File.fopen('UTIL_FILE_DIR', '&input_file', 'R', 2048);
    Out_File := UTL__File.fopen('UTIL_FILE_DIR', '&output_file', 'W', 2048);
    LOOP
    BEGIN
    UTL__File.get_line(In_File, Curr_Line, 2048);
    .......

    A shell script would typically issue something along the lines of
    newfile=$(ls -C1 | grep -i "\<${filename}\>")although of course it is possible for this to match multiple filenames, so it would have to check for that scenario and report it as an error. possibly you could call a shell script like this from PL/SQL via Java or DBMS_SCHEDULER. Good luck with that though.

  • Case Sensitive File Names

    Hi...
    I've been trying out the trial version of RH8, before
    upgrading from RH7. One of the problems I have noticed is the
    option to "Use Lowercase File Names (Recommended for UNIX)" in the
    Single Source Layouts setting, only works for actual pages in the
    project. As i have a number of PDF's as baggage files (that now get
    indexed), when they are returned in the search results, I just get
    a "Not Found" error. This is because it is not correctly putting
    the folder names or file names in lower case.
    Does anyone know a solution or workaround for this? (aside
    from renaming all files/folders!). Or know where I can submit this
    as a bug?
    Thanks...

    Bug/Feature requests can be filed
    here..
    As a workaround, you could try renaming your baggage files - for
    example File.pdf to file1.pdf and then to file.pdf. You'd need ot
    delete and add the baggage file references though. An alternative
    is to exclude the baggage file type from the search. You can find
    out how to do this from the latest post on my blog.

  • Case SeNSiTiVe file renaming (.JPG - .jpg)

    Hi,
    Is there any way when renaming files to assure the case of the file name extension? I want "P100385.JPG" to be renamed "filename-sequence.jpg". I have no problem setting "filename-sequence" but JPG always ends up in upper case and I want to force lower case.
    Any tips/tricks/pointers would be appreciated.

    Right - of course - WinXP Pro.
    Now, the thing is that XP will respect case on the file name (ex: file.JPG, file.jpg, etc.) but treats upper and lower case the same (ex: file.JPG is the same as file.jpg).
    Unix, on the other hand, treats case differently so that file.JPG and file.jpg are two different files. Since I upload files to a unix box I'm concerned for consistent case (lower - because I like it that way). I did notice that the Web module exports lower case file names but I'm not always using that.
    Thanks.

  • Refinement Panel show "file name" values with question mark instead of spaces

    Hi,
    I customized Refinement Panel to refine by file name. In some cases the value (file name) is shown with question mark instead of space. It looks like gibberish and the refine by that value doesn't bring the result.
    Any ideas how to solve?
    keren tsur

    Hi Keren,
    Please try to reset index in Central Administration > Application Management > Manage service applications > click the Search service application > Crawling > Index Reset > check the box Deactivate search
    alerts during reset > Reset Now > Ok.
    Then restart a full crawl in the Central Administration > Application Management > Manage service applications > click the Search service application > Crawling > Content Sources.
    In addition, please capture a screenshot of the issue.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Regards,
    Rebecca Tu
    TechNet Community Support

  • ADE changes file names

    The book I downloaded has each chapter as a seperate .pdf, each with it's own unique filename. ADE has retitled every chapter (.pdf) to the name of the book. Now that all the chapters have the same name, I can't transfer them to my Kobo. How do I change titles or get ADE to stop changing file names?
    Thanks

    Dimitri,
              As usual, thanks for the simple but informative explanation!
              Jason
              "Dimitri Rakitine" <[email protected]> wrote in message news:[email protected]..
              > I think your theory is correct - java classes cannot contain '-' in
              > the name and 45 is ascii decimal for '-'. 46 is '.'.
              >
              > Jason Rosenberg <[email protected]> wrote:
              > > I have been working with using jspc.
              >
              > > I have noticed in a few cases it changes file names.
              >
              > > For instance, when I compile the file: '6-12adrworld_090700.jsp',
              > > it produces: '_6_45_12adrworld_090700.class'
              >
              > > Where does the '_45_' come from? I am trying to work with the
              > > theory that '-' becomes '_45_'....
              >
              > > Also, in another case, I noticed a '_46_' was inserted.
              >
              > > Any ideas? Is this documented anywhere?
              >
              > > Jason
              >
              >
              >
              > --
              > Dimitri
              

  • File Name Case Sensitivity in JDeveloper

    A few months back I discovered that I could not create and compile an application on our common network drive because it forced all file names to uppercase. (Gotta love VMS). JDeveloper would get a compile error on the app_name-jazn-data.xml file. We put in a TAR on the issue, which Oracle was more than able to recreate. Solution was not to use a drive that forced everything to uppercase. Since JDeveloper creates the .xml file in question, I could not modify the name of it in any code. I was able to create and compile an application on our common web application network drive though without problems. This drive forces everything to lowercase. (Gotta love Unix)
    In creating ADF Business Components and a JSF JSP, I found that JDeveloper creates the file names in both upper and lower case and it adheres to this in the application. Thus I am unable to compile my .java files on our common web application network drive. I recreated the application on my C: drive without problems.
    Since I do not create these files or enter anything in to create them, I currently have no control over how JDeveloper creates them.
    Is there something in JDeveloper that I can modify so that all file names will be in a particular case? Or, is there somewhere the file names are stored so that they can be changed?
    We really want to use JDeveloper for our development, but have some major deployment problems because of this issue.
    Thanx
    Pam

    I am probably missing a point here, but mixed case is not a feature or bug in JDeveloper. Any other Java IDE will do the same. If you want to use ADF BC, ADF Faces, etc. you must be able to create and save files with mixed case names. Many of those files are generated by JDeveloper, and sometimes you have no control over their names
    There must be something wrong with your mapped drive on the unix machine... Why istalling and developing everything on your local drive is not an option?
    Sorry, may be I just don't get it
    Message was edited by:
    c001803
    Ok, after reading this thread one more time, I probably understand the issue. You use the shared network drive for team development, right? and you want all the sources to be accessible by the team, right? If this is the case, then CVS is the answer to your problem , as mentioned in the previous post. You may want to google cvs, to learn more about team development environment, and its integration with Jdeveloper and other IDEs

  • CS5.5 Master Collection on Case-Sensitive File System

    Hello,
    The first thing I'll say is that I already know it's not possible to install on a case-sensitive file system.
    So, on to my question.  I have been tasked to find out a way to get this installed on our 30-35 Macs with case-sensitive file systems (required for other courses/tasks, so not an option to format.)  I was trying to think of a work-around that would let me install and use the CS5.5 Master Collection, but have not been successful yet.  Please note, I am not looking for a hack or extensive renaming of a bunch of files or other half-solutions I've found.
    Basically, what I was wondering is, if I go into Disk Utility and create a 35GB "Disk Image", mount that, and then try to install, why doesn't that work?  I mean, I am technically trying to install to a case-insensitive file system at that point, but CS5.5 still pops up with an error.  Has anyone gotten this type of solution to work, or any other for that matter?  Luckily my college hasn't bought the licenses for all these systems yet, but when a solution is found, they're jumping on it right away.  The main reason I don't want a "hacky" solution is that being deployed on 30-35 systems, this has to be a simple solution, not something that takes hours per system.
    Any insight is greatly appreciated.
    Jeffrey Simmons

    Thank you for the information, I had a hunch it was installing stuff elsewhere too, but wasn't 100% sure.  As for the problem, I ended up just converting to a case-insensitive boot partition.  To others who may want to do this, I used iPartition without a problem.  The only catch is, you can't just run it from the OS drive, you either have to burn a iPartition Boot DVD (requires you have your OS dvd as well), or do what I did and just install OSX to an external drive, install iPartition, then convert the file system on the regular OS drive.  A bit of a hassle, but you don't have to format your system. 
    CS5.5 Master Collection then installed fine, with no problems.  Unfortunately, Photoshop keeps repeatedly crashing.  It's fine for hours, then crashes 4+ times within an hour.  Repeats this over and over unfortunately.  Adobe support hasn't been helpful at all, so I'm just going to return this software and continue using Gimp.  It has always done everything I wanted, but I wanted the "name brand" software.  In the end, it's not worth the hassle, and definitely not worth losing my work over and over, so back to the store it goes.  Thanks again for taking the time to help out though.
    Jeffrey Simmons

  • CS5 install on case-sensitive file system - can't choose different drive (Mac OS)

    I just upgraded my macbook pro to a new drive and 10.6, and chose 'case sensitive' HFSX, 'cause I'm a heavy command line user and wanted the maximum BASH experience.
    I'm trying to install the CS5 demo to try some web design tools, and the installer immediately says "Installation to case-sensitive drives is not supported. Please choose a different drive location to install." So case-sensitive drives aren't supported; crappy but fair enough.
    The error message leads me to think that I can just choose a non-case-sensitive drive to install to, but I never get a chance to pick one - I click on the installer and it goes straight to the error message.
    So - how do I pick a different drive to install to? Am I just an idoit, is there no way to select a different drive, or will it not install on a system that even BOOTS from a c.s. drive, regardless of the format of the drive that CS5 is installed to?
    I called the support number, and the poor fellow on the other end suggested I re-download the demo, and if the new download fails call Apple support to report my 'drive error'.
    I'm hoping to avoid an entire backup-reformat-restore and lose CLI compatibility just to try some demo software.
    ch

    That is part of why I would prefer case sensitive by default.   I know some server packages do the folding for you, same as some web servers do not differentiate between 'htm' and 'html' when people type in requests, but most of the time the backend server is going to be case sensitive and it is not safe to assume (or hope) that the service will fix things.  Compensating for mistakes is fine, but allowing such silent corruption is not a terribly laudable things and it encourage people be careless.
    Every once in a while I do encounter someone submitting some work where their configuration values and file names do not match, and 'well my laptop silently fixes it for me since it does not care' is a poor excuse.  And if I sent broken filenames upstream or even worse commit them to be used on a server, that is a pretty significant professional failure.
    Back to Adobe specifically, I have been trying the suggestion on poster mentioned in where one installs the Adobe applications to a case insensitive drive then copy over the installed files.  This does not quite work out of the box, but for reasons I would be hard pressed to believe are Apple's fault.
    For instance the first error I encounter is the inability of Bridge to load:
    "@executable_path/../Frameworks/WRServices.framework/Versions/A/WRServices"
    When I go look inside the app directories I can see that in Bridge the file has been named 'awrservices', but in Illustrator it is correctly named AWRServices.   So it looks more like a problem in whatever version control they are using.  The only way I can picture (which my adminitialy limited knowledge of what I am sure is a large and complex project with all sorts of legacy issues) that the installer toolchain factors in as a problem is if they have mismatches in their own scripts/packaging and have been depending on HFS's bad behavior to hide the problem.  I can understand not wanting to invest the time to pay down the technical debt on such an issue, but having such errors in your configuration causes long term headaches.
    And I say this as someone who worked on just such a project, moving a software suite that had legacy code stretching back longer than Adobe has existed as a company.  This conversion included moving from a case insenstive filesystem to a case sensitive one and yeah, there were lots of problems that the old FAT32 system hid from us, but it really paid off over the long run to fix them rather than try to twist the code to compensate.
    Having said that, if the problem is really that they do not want to go update their filenames (in version control or config files), then you can always add folding to your loaders.  I have had to do that a few times due to upstream people developing on case insensitive systems and sending data files with incorrect file names.  This is an old class of problem, and while I can empathize with the struggles project managers have trying to get approval for paying down technical debt, the problem never gets better on its own and usually gets worse.
    Which is why I responded with so much grump to the 'I never needed it' argument since that is exactly the type of customer comment that marketing tends to point to in order to push such things off the schedule.  This is the type of thing where the customer does not really know what they want because they are already accustomed to broken behavior and most of the problems are hidden from their immediate view.  It is easy to cover up the limitations since modern UI (and their search capabilities) can handle this. 
    It is not just arcane developers stuff, and it is the same transition that people have made with things like spaces, quotes, and parentheses, where years ago users believed they had no need for them since they were not using them, but they were only not using them because they did not work.   Today try to tell a modern user they can not put (, ", ) or even ' ' in their filenames and they would rightly question why this piece of obvious functionality is not working since today they are used to it working and no longer automatically compensate for it.
    I also find it ironic that by default OSX hides a number of file extensions, so from the user's perspective you can have multiple files with the exact same name displayed to them, so you can get display issues where 'foo' is the same as 'foO' if both have .txt, but 'foo' and 'foO' are not the same if one has .txt while the other is .pdf.  Add to this confusion cases like 'foo.txt' and 'foo.pdf" both being shortened to 'foo'.

  • Case Insensitive File Names in Sender File Adapter

    Hi,
    I've tried my best to search SDN on this issue with no help...
    My sender file name can have any case (upper or lower) e.g.
    ABC_123.txt
    or
    ABc_345.txt
    or
    aBC_456.txt
    However configuring the file name in the sender file channel as 'ABC*' did not work
    only files with name starting with the capital letters ABC got picked up and lower case did not get picked up...
    any suggestions on how this can be overcome
    Thanks
    Bharath Sai

    what if my file name has to be F0215DBFR* ??
    should I give 4*4 = 16 combinations ?
    looks funny... but feasible..
    was hoping SAP has a standard solution like
    [Ff]0215[Dd][Bb][Ff][Rr]* ?
    Anywise.. thanks a lot for your help Satish.. will use this technique (16 combinations for my req..)
    Edited by: Bharath Sai R on Sep 25, 2009 4:37 PM

  • Dynamic file name in case of .txt output files

    Hi all,
    I have a query related to dynamic file name scenario.
    In case of IDOC-XI-FILE sceanrio,
    <b>Is it possible to generate .txt file name based on Plant number like</b>
    <b>%<Plantname>%_%<BusinessDay>_filename.txt</b>
    <b>Note:I have implemneted this for .xml output files but I am not able to implement it for .txt output files .</b>
    PLEASE HELP ME .
    Regards
    Prabhat

    Hi Prabhat,
    I think, the normal Dynamic File Name generation should work fine in your case also. Even if you perform Content Conversion, you can use Variable Name Substiution to create your Destination file name as, the name of the file is determined first and only then is the content converison perfromed.
    for info on content conversion, I would suggest that you go through this thread and check my reply,
    Re: Dynamic  File Name for Receiver File Adapter
    Regards,
    Bhavesh

  • Case-Insensitive File Name Search on Unix

    Hello,
    I have a program which runs on a Unix OS and it looks for some files like file.csv, and then reads these files. Basically I know the file name and I look for that file name in a particular directory.
    Now, I want to make my program case-insensitive so that if the file name is file.csv or File.csv or FILE.csv, it should still locate that file and read it.
    Any advice....
    Thanks.

    Thanks.
    Probably I have to get all the file names in that
    directory and then try to match against the file name
    (using ignore case or toUpperCase() maybe), which I
    am looking for.
    Is there a way, where I don't have to get all the
    file names in that directory and can just go and get
    the FileReader Object etc for the file which I am
    looking for.No
    /Kaj

  • For each loop in case of more file with the same name

    Hi, guys how works ForEachLoop in case of double file? Let's say that we got five excel file. A.xls, B.xls, C.xls, D.xls, A.xls. We got two file with A.xls. I'm going to assume that both file will be loaded. It's correct? 
    I'm asking this because I need to check if I got two file with the same name ( I got hundreds of file to load). And in the same time I need to avoid to load two file with the same title ( cause I could double the data)

    If there are duplicate file names in subfolders then you should fill the variable with the complete path. See C in this images:
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • CS4 and Case Sensitive File Systems

    Does anyone know if CS4 will support case sensitive file systems?

    While I do wish all software companies including Apple completely
    supported the case-sensitive file system. Many don't. I cannot pull up
    an article, but I remember reading that Apple only recommended the use
    of the case-sensitive file system for OS X server and if memory serves
    even for that it only recommended it for the attached hard drives.
    We can lament the lack of support but if you really want to change the
    status quo for Adobe products then the only useful way to do so is:
    ...Mike

  • Case-Sensitive File System?

    I downloaded the trial for Flash CS4 pro and it won't install on my computer.
    It says:
    System Requirements Error
    This software cannot be installed because the file system of the OS volume is not supported. The OS volume should be local , writable and should have non case-sensitive file system
    Anything I can do to get it to work? I have a MBP running Leopard on an intel processor.
    Message was edited by: guynjoan

    guynjoan wrote:
    The hard drive is internal. And Adobe tech doesn't work on the weekends. I checked the "get info" on my hd and it said it is case-sensitive,
    that's your problem. Lots of apps have problems with case sensitive drives so you should never use case sensitive file system unless you have a compelling reason to do so. Your only recourse now is to move your data to a non case sensitive drive. Clone your hard drive to an external drive, boot from the leopard install DVD, reformat the drive non case sensitive and install leopard on it. then use migration assistant to migrate your data from the external.

Maybe you are looking for

  • Invoking web service using Weblogic Workshop (JCX)

    Invoking web service using Weblogic Workshop Posted: 5 Jan 2005 23:31 PM Reply Hi, I have WSDL from which I have generated a web service control (.jcx) using Weblogic Workshop. I need to write a client which will invoke the web service using the cont

  • Why can't my recipient add comments in a pdf created in Frame 7.1?

    I created a pdf in Frame 7.1. The recipient was using Reader 9 and could not add comments. I had enabled commenting and removed all security in Acrobat Pro 7.1. Did I miss something? Can  you comment a pdf that was created in Frame 7.1?

  • Enterprise Solution for communication??

    Hi, We need to transfer pdf files between various environments(AS/400, WIN2K, AIX etc) with detail information about pdf files. Reciever will recieve the pdf file along with the details and populate that information into their database. reciever will

  • Playback control changes when animation is inserted into anothr movie

    Hi, I have created a couple of movies and used a specific playback control. When these movies (saved in swf format) are ran separately, everything is fine and the appropriate palyback control is shown. However, when I insert these animation (swf) int

  • QoS on the UCS Chassis

    I bought a UCS chassis with two blades that are 'qualified' for Cisco Voice products (cm, ccx, etc)....     i decided to not buy the $20,000 worth of VMWARE enterprise pro licenses and the v1000 switch... since the ROI is simply not there (I'd rather