Results 1 to 2 of 2
  1. #1
    javment is offline Member
    Join Date
    Oct 2010
    Posts
    6
    Rep Power
    0

    Default Something Like FileSystem Listener

    Hi everyone! I'm new here and I am happy to be here.

    I want to develop an application. In which application should have a database with a list of files. For example, if you have a folder/home/username/Music/ I want to create a list of all mp3 files in this directories (and subdirectories). My question is if there is an effective way to keep the database synchronized with the file system, or the only way is to periodically scan the specific file system and create the database from the beginning?

    Thank you.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    The file system listener mechanisms is largely system and operating system dependent. Usually within (e.g. a given Linux distribution) there are even many different facilities that attempt to achieve the same function of notifying something on change of a file resource.

    It might be easier (and more portable) to just scan the folder initially and periodically or manually to update it.

Similar Threads

  1. J2ME sms listener
    By bharani in forum CLDC and MIDP
    Replies: 4
    Last Post: 10-31-2009, 07:02 AM
  2. Tab Listener
    By teckno101 in forum AWT / Swing
    Replies: 2
    Last Post: 09-29-2009, 09:40 PM
  3. Display image from filesystem
    By Pmarcoen in forum CLDC and MIDP
    Replies: 2
    Last Post: 08-31-2009, 11:00 AM
  4. Regarding Listener
    By adeeb in forum AWT / Swing
    Replies: 2
    Last Post: 06-20-2008, 11:07 PM
  5. Regarding Listener
    By adeeb in forum AWT / Swing
    Replies: 2
    Last Post: 06-10-2008, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •