File name under UNIX

Hi,
I have this problem: a part of my application is reading a file name. Sometimes the file name contains special characters: �, �.... Everything works fine when I'm testing on Windows. When I'm testing under UNIX I get '?' insteed of �. I can see that la file has a corect name on the HDD.
Why my application displays different results on Windows and UNIX?
Ex:
File f = new File("bla/bla1/bla2");
Filter filter = new Filter(".txt");
String[] files = f.list(filter);
The files array contains diferennts strings on Windos comparing to UNIX.

Que? File names are allowed to contain certain characters in windows, and another set of characters in unix.
/Kaj

Similar Messages

  • Can't rename file name under Finder even as an administrator.

    As an adminstrator to my MacBook Pro, why can't I rename certain file name  under Finder?

    Have you tried running lsof from the Terminal?
    Lsof will show you any files that are open, the likelihood is that your file is in use.

  • View file names under images?

    In iPhoto, the titles of all imported images were set to the file names and it was therefore possible to have the file names displayed under every image.
    In Photos, titles can be viewed by selecting View > Metadata > Titles, but all titles are empty on newly imported images. There seems to be an option to view the file name as a separate field, by selecting View > Metadata > Referenced file. However, this option does nothing. But when I search for a file name, the correct images show up, so Photos obviously keeps track of the file names somehow.
    So, how can I view the file names under every image, or import the file names into the titles?

    OK, thanks.
    I dug around a little and this definitely seems to be a bug in how the iPhoto library is converted to a Photos library. iPhoto didn't just display file names under the images. Rather, on import, iPhoto actually sets the image titles to the file names minus the file extensions (e.g. ".jpg"). But those titles, as well as the titles manually set in iPhoto, are not imported properly into the Photos library.
    I located the Photos library database. It's in the library package > Database > apdb > Library.apdb. The file is in SQLite format and can be browsed and edited with e.g. "sqlitebrowser" (http://sqlitebrowser.org/).* In it, I found that there is a table called RKMaster, that holds information about all original images. RKMaster has an attribute called "name" that contains all the original image titles. This is not the same as the file name, which is a separate "fileName" attribute in the same table, which in my case contains the same information as the "name" attribute, but with file extensions.
    Then there is another table, RKVersion. This table contains information about the different versions of all images and this information is the one actually being displayed when you use the application. RKVersion has attributes for "name" and "fileName" as well. In my Photos library, "name" is empty for all my newly imported images, but "fileName" has all the correct file names with file extensions. If I edit the database and insert something in the "name" attribute for an image, the name is then displayed as an image title in Photos.
    I then opened the library file from my old iPhoto library and it has a similar structure. In its RKVersion table, all the "name" attributes are filled out and they contain all the image titles I want to see. So I can conclude that during the conversion from iPhoto to Photos, the "name" attributes were simply not copied over, and that is why all my images now lack titles.
    I will try to find a way to copy this whole column from the iPhoto library into the Photos library, which should solve the problem.
    * Please be aware that editing this file may cause irreversible damage to the library. Make sure there is a backup of the whole library before digging into these files.

  • Getting a files inode under unix

    i want to take a list of files and sort them according to their inodes.
    how do i get file i-nodes under unix system?

    Pure Java wont work.
    You need an external command (-i flag for ls)
    or a native method accessing:
    STAT(2) System calls STAT(2)
    NAME
    stat, fstat, lstat - get file status
    SYNOPSIS
    #include <sys/stat.h>
    #include <unistd.h>
    int stat(const char file_name, struct stat buf);

  • Password file name in Unix

    Hi,
    on 10g R2 , on AIX 6.1
    is the password file name format important ? What is it ?
    Is the following a correct format :
    orapwdMYDB
    It is said in documents :
    For name and location information for the Unix and Linux operating systems, see Administrator's Reference for UNIX-Based Operating Systems.
    But I can not find Administrator's Reference for UNIX-Based.
    Thanks.

    user522961 wrote:
    Thanks to all.
    echo $ORACLE_HOME/appli/oracle/product/10.2.0/db_1
    ls -ltr $ORACLE_HOME/dbs-rw-r----- 1 oracle dba 3072 Dec 15 16:00 orapwdMYDB_old
    -rwx------ 1 oracle dba 1263 Dec 16 10:44 initMYDB.ora
    -rwx------ 1 oracle dba 1263 Dec 16 14:18 initMYDB.ora
    -rw-rw---- 1 oracle dba 24 Dec 16 14:58 lkMYDB
    -rw-r----- 1 oracle dba 3072 Jan 17 13:20 orapwMYDB
    -rw-rw---- 1 oracle dba 1544 Jan 17 15:00 hc_MYDB.dat
    -rw------- 1 oracle dba 3584 Jan 17 15:21 spfileMYDB.ora
    env | grep ORACLE
    ORACLE_SID=MYDB
    ORACLE_HOME=/appli/oracle/product/10.2.0/db_1
    And I have no sqlnet.ora !!!!!!!!!!Also post there from sqlplus SHOW PARAMETER REMOTE_LOGIN_PASSWORDFILE

  • Handling variable flat file name in UNIX environment

    Dear Forum,
    I am working in a project where,
    Online systems generate flat files with variable names (followed by timestamp) and load into a Unix directory (FTP Location) for loading into data warehouse.
    Using OWB, I will have to rename those files into a static name then execute the mapping. Once the mapping is executed the the source file should be transfered to a different directory.
    I am trying to do this using a external process in OWB process flow. I found a similar reference in the link below
    http://www.oracle.com/technology/products/warehouse/pdf/Cases/case7.pdf
    But here it is shown for windows only. As I do not know unix, I could not proceed a lot with this.
    Therefore requesting you all, please help me showing how can I achive this. I think your answer will help many others along with me, looking for the same solution. Please help.
    Kind Regads
    Zakir

    You will need to logon as your Oracle owner (the userid is ORACLE, in my case), and then issue the following commands from a terminal session:
    To create a new reports server (one in addition to the default
    in-process server), use the following commands:
    export ORACLE_HOME=<whatever your oracle home path is>
    cd $ORACLE_HOME/bin
    ./rwserver.sh <newserver name>
    To start the new server, issue:
    ./rwserver.sh server=<newserver name>
    Leave the Unix session that was used to start the server logged on unless you have something like DTWM running that will keep the server running. Otherwise, if you log off the unix session, the server will end.
    Then just substitute the new server name in your line command. The difference between the in-process server and a standalone server is that the in-process server will not always stay active - it will start when it receives a request. The standalone server will stay active all the time and wait for requests.
    If the standalone server works for you, I would suggest then putting it in the correct config files to let Enterprise Manager manage it for you. If you get that far, let me know and I can tell you how to do that also. (Plus the instructions are in the Publishing Reports To The Web manual).

  • Where is the DB_CONFIG file located under Unix environment?

    Hello,
    i'm new to Berkeley db, i have installed the version "db-4.8.30.NC.tar.gz" but now i would like to find the configuration
    information by using the configuration file.
    I've read in the documentations that this file is named DB_CONFIG and it exists in the
    database home directory.
    In my system, i have uzipped the tar file under /usr/db-4.8.30.NC but i still haven't found
    the DB_CONFIG file.
    Shall i expect that this file is going to be named in this way "DB_CONFIG", right?
    But still i'm searching it and i haven't found it.
    May you please help me?
    Thanks, in advance

    Hello,
    DB_CONFIG is a file you create in your database home directory. It is not supplied
    by BDB. The documentation on how to use DB_CONFIG is below:
    DB_CONFIG configuration file:
    http://docs.oracle.com/cd/E17076_02/html/programmer_reference/env_db_config.html
    The parameters are listed at:
    http://docs.oracle.com/cd/E17076_02/html/api_reference/C/configuration_reference.html
    Thank you,
    Sandra

  • Full file name under desktop icon, not a finder window.

    Hello, is it possible to have icons/dirs on the desktop display their entire name without ellipses? Don't care about /path.
    Thank-you,
    Dennis

    Try launching "/Applications" > "Utilities" > "Terminal.app" and entering these commands:<pre>
    defaults write com.apple.finder FXDesktopLayoutGridCharCount -int 50
    osascript -e 'tell application "Finder" to quit'</pre>
    Then restart the "Finder" by clicking on its "Dock" icon.
    You can try different numbers other than "50" until you find a value that suits your preferences.
    Edit: oops, too slow I guess.
    Message was edited by: biovizier

  • How to creat the logical file name.

    Hello All,
    I want to create Logical file name in my program, So Please guide me  in this issue.
    Thanks

    Check this out
    http://help.sap.com/saphelp_45b/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    FU FILE_GET_NAME
    Text
    Assign the Physical File Name Using a Logical File Name
    Functionality
    R/3 applications run on various platforms with various file systems. This function module enables you to use platform-independent logical file names in your application programs.
    Based on definitions maintained in customizing tables for platform-independent file names, the function module converts a logical file name to the corresponding physical file name and path for the hardware platform concerned.
    For this conversion to work for different platforms, the definition of a logical file name must include a logical file path, which in turn is converted to different physical file paths, depending on the particular platform. The platform-specific file name returned by the function module is composed of the physical file path for the current platform and the physical file name associated with the logical file name. Placeholders in physical file and path names are substituted at runtime by the corresponding current values.
    Example
    logical file name: MONTHLY_SALES_FILE
    physical file name: VALUES<PARAM_1>
    logical path: SALES_DATA_PATH
    physical path (UNIX): /usr/<SYSID>/<FILENAME>
    physical path (Windows): C:\SALES\<FILENAME>
    Example 1
    Get file name for UNIX platform
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES
    FORMAT = WK1
    Example 2
    Get file name for UNIX platform, passing a parameter
    (current system: K11)
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    PARAMETER_1 = '_TST'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = /usr/K11/VALUES_TST
    FORMAT = WK1
    Example 3
    Get file name for WINDOWS platform, with file name extension
    CALL FUNCTION 'FILE_GET_NAME'
    EXPORTING
    LOGICAL_FILENAME = 'MONTHLY_SALES_FILE'
    WITH_FILE_EXTENSION = 'X'
    IMPORTING
    FILE_NAME = FILE
    FILE_FORMAT = FORMAT.
    Result:
    FILE = C:\SALES\VALUES.WK1
    FORMAT = WK1
    Notes
    All definitions needed for the platform-independent assignment of file names are maintained client-independently with transaction FILE. Logical file names (but not logical file paths) can also be defined specifically for the current client with transaction SF01. Transaction SF07 generates a list of current definitions.
    The following concepts are used in the platform-independent assignment of file names:
    Logical file name
    A descriptive name for a file which is associated with these values:
    physical file name
    file format
    logical file path.
    If no logical file path is specified, the function module returns the physical file name only; placeholders are substituted by current values.
    Physical file name
    The physical file name may contain placeholders.
    Logical file path
    A descriptive name for a path which is associated with these values:
    syntax groups (groups of operating systems)
    physical file paths.
    Physical file path
    The physical file path is defined for a particular syntax group. It must contain the reserved word <FILENAME> as a placeholder for the file name. It may also contain other placeholders.
    Operating system
    Presentation server and application server can run under different operating systems. The current value for the application server can be obtained from the system field SY-OPSYS, the value for the presentation server by calling function module WS_QUERY.
    Both operating systems must be defined and assigned to a syntax group.
    Syntax group
    Group of operating systems with a common syntax for file and path names (e.g. HP-UX and SINIX).
    Placeholder
    Reserved words, set in angle brackets, which can be included in physical file and path names (e.g. <DATE>, <FILENAME>). You can find information on possible reserved words in the online help (F1 help) for the fields physical file name and physical file path when maintaining platform-independent file names with transaction FILE.
    If the logical path associated with a logical file name does not specify a physical path for the current operating system (syntax group), the path stored in the profile parameter DIR_GLOBAL of the current system is used for generating a complete platform-specific file name.
    Parameters
    CLIENT
    LOGICAL_FILENAME
    OPERATING_SYSTEM
    PARAMETER_1
    PARAMETER_2
    PARAMETER_3
    USE_PRESENTATION_SERVER
    WITH_FILE_EXTENSION
    USE_BUFFER
    ELEMINATE_BLANKS
    EMERGENCY_FLAG
    FILE_FORMAT
    FILE_NAME
    Exceptions
    FILE_NOT_FOUND
    Function Group
    SFIL
    Thanks
    mahesh

  • Full file names on Desktop Icons

    coming from 10.5, all of my desktop icons revealed the full file name. under the icons. Now on 10.6.2, they are "..." abbreviated. I've looked everywhere and through the "Show View Options" by right-clicking, it only allows me to choose between showing the file info (like size), but not the full names.
    Is there an option somewhere to address this?
    Thanks!

    Set the grid spacing wider in the view options (View menu, Show View Options).

  • In Photoshop Elements 8-I want the file name to show when viewing Thumbnails and not just dates.

    In Photoshop Elements 8 i want to see the file names under the pictures when viewing thumbnails not just the date. Is this possible?

    Anyway, if it's the organizer look under the View menu to enable the data that is shown under the thumbnails.

  • Configure receiver file name as Sender file name

    Hi All,
        In PI7.1.  We have scenario(file to file). Here the sender system send multiple files and In the receiver system we need to populate the same filenames as Sender file Names.
    Could you please let me know is there a configuration to have Receiver file schem name As like sender file names.
    Thanks in Advance,
    Naga.

    Hi Naga,
    This can be achieved using either variable substitution or Dynamic Configuration by enabling Adapter Specific Message Attributes in sender and receiver file channels.
    If the sender file name and receiver file name needs to be exactly same then just check Adapter Specific Message Attributes in advanced tab of both sender and receiver channels. Check on File Name under that.
    Lot of help over this is already available in sdn, kindly serach and you will get lot of helpful blogs and wikis
    Regards,
    Gautam Purohit
    Edited by: Gautam Purohit on Apr 16, 2010 11:26 AM

  • Removing File Name from Slideshow

    Using CS4 I create a slideshow to embed in a webpage as a photo gallery. How do i Disable the display of a file name under each picture? I have tried to insert captions and everything I can see to try but the file name still appears and no captions show up??

    Which Slideshow preset are you using?
    h

  • The Video app in OS7 update doesn't display file names.

    The Video app in OS7 doesn't display file names under the image.
    How can I identify my video files without having to open each file to access the file name.
    Is there something I am missing or is this just an omission in the OS7 upgrade.
    I am a music teacher and this lack of file names makes the app virtually useless for use in the classroom.

    Agreed. This has been a problem with TV Shows in the Videos app since forever, but at least it used to put the name under Movies. Now instead fixing it for TV Shows in iOS 7 they've done the opposite and made Movies fail the same way as TV Shows always have!
    Apparently it still lists the title for Home Videos, so the best work around for now is probably to reclassify all your Movies as Home Videos. Sigh.
    Apple's Videos app development team seem to be unaware that iTunes can store and play movies and TV shows that don't come from the iTunes Store, videos that don't have covers, and that need to display the names and other info from iTunes for them. They also seem to not understand that the default grid view for videos is totally inadequate for users with scores or hundreds of movies and TV shows that they home share to their iPads and iPhones from iTunes. The Videos app needs a list view at least, as well as a grid view.
    All they have to do is look at how the Apple TV handles the same files and meta-data from iTunes and provide something similar for the iPad and iPhone. Why after all these years they still don't get that I have no idea.

  • File names of images in IPhoto

    I have two questions. Does anyone know how to see the photo/file name of images loaded into IPhoto? Is there a setting that you can turn on to show the file name under each image?
    Secondly. While trying to find answers to the above question I did discover the export originals option which would allow me to export images into a separate folder that does list the image numbers. This is a work around but not really what I'm after.
    Doing this export I did get a folder of images with their respective file numbers attached. However, what is interesting and I'm hoping someone can answer is that many of the images that should have had my own personal image number, were actually labeled Slide 1, slide 2, etc, etc. When I originally imported these images they contained a number that looked like this 00478-22135. Does anyone know if the dash between the number may not be recognized by IPhoto which it then just labels a generic number it makes up on import? Or any other reason why it would not have accepted my original file name? I know it does accept some file names since several images with a different number format such as D223567 imported just fine and then exported with the correct original file names. Any suggestions are greatly appreciated.
    MacBook Pro Mac OS X (10.4.7)
    MacBook Pro   Mac OS X (10.4.7)  

    Jim:
    Under the View menu select "Titles" to get the file names. I don't know what you did but I just tried an import of a file titled 00478-22135.jpg and it kept the file name OK.
    When you exported the files what was the Album name and did you use the "Use Album Name" option in the export". If the Album was titled Slides then you would get new file names titled "Slide-1.jpg", etc. That may be the reason.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB file backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

Maybe you are looking for

  • Add RAM or buy a new machine? Need advice please.

    Hello, I am asking this question for a friend who owns a 5 year old iMac. It only has a 500GB hard drive, and it is almost full (475 GB are in use, and we recently had to dump some items because it had reached it's limit). It has the factory-installe

  • Getting (4280) in Windows 7 with a Sony Aw-Q170a Drive?

    I finally fixed my burning error in Windows 7 with my Sony Aw-Q170a burner. After being frustrated with 4280 message after another in iTunes, I tried burning in WMP and it was not finishing there as well. After hours of searching on the web, I finall

  • IPhone 5s Touch ID is Not working after Update to IOS 8.1

    Touch ID on my iPhone 5s cant detect and Save my fingerprint ..... please help ? i hope Apple.inc can fix this Problem as soon as possible

  • JBoss Rich Faces JDeveloper 11g TP 4

    Hello, I'm trying to configure JDeveloper 11g TP 4, to user JBoss Rich Faces JSF implementation for testing purpose. Here are the steps I did: 1 - Copied richfaces-api-3.2.1.GA.jar, richfaces-impl-3.2.1.GA.jar, richfaces-ui-3.2.1.GA.jar to the JDEV_H

  • [SOLVED] Can't mount my root file system on boot!

    Posting from an Ubuntu install on the same machine. So, my root partition, labeled "arch", is ext4 on /dev/sda5. My home partition is btrfs on /dev/sda1. When I boot, I get this error: http://imgur.com/mzmLIZH Not sure what to do from there. I can mo