I need the names of the folders inside a folder

I have this path: '/var/lib/squidguard/db/blacklists/' and inside this folder (blacklists) I have a bunch of other folders, I need their names. How can I get this?
thanks!

I used listFiles(), it worked! thanks!You might have done better to use
public File[] listFiles(FileFilter filter)
where the filter is defined to just accept folders.
For example
        File[] childDirectories = parent.listFiles(new FileFilter()
            public boolean accept(File file)
                return file.isDirectory();
        });

Similar Messages

  • How does iPhoto v. 8 name the folders inside iPhoto Library?

    iPhoto used to name the folders (holding original photos) the same as the event name. Now it seems to use the date of the photo, but does not change the folder name to the event name. Is this the case with the newer version?
    thx

    Yes. iPhoto 09 no longer has a strict correlation between the Events in the iPhoto Window and the Events in the Originals Folder. However, it doesn't matter as you never access the Orignals folder anyway. If you want to create a folder of your Events simply select and event and export it: File -> Export.
    Regards
    TD

  • I need the Folders Pane to remember where I left it

    As a heavy Thunderbird user at work, the single most frustrating thing about Thunderbird is the Folder Pane resets to the top every time I do anything. This is extremely annoying as I have to stop and find the folder every time I read/copy/move/etc. Outlook is not that way and remembers where you left it. Is there a way I can fix this or an addon or something? Can you please add a feature to remember folder position?

    Something is definitely getting lost in translation.
    Perhaps you are not seeing the problem because you don't have enough folders to make the folder pane scroll.
    If I leave and come back to thunderbird x days later yes the folder pane will still be there. I am not talking about the folder pane leaving or going somewhere else. I am talking about the list of folders inside the folder pane scrolling up and down. If I scroll down I want it to stay where I scrolled it when I am reading and moving emails.

  • FavoriteFolder, how to get the content inside this folder

    Hi
    I have to get with the Java api consumer the content inside the favorite folder. How can i get it?
    i write this code:
                   String searchQuery = search://{'guaglanto1'}?SearchKeywords=true&SearchExact=true&SearchCaseSensitive=true;
                   ResponseHolder rh = boBIPlatform.get(searchQuery, null);
                   InfoObjects myFav = rh.getInfoObjects();
                   if (myFav == null || source.getInfoObjectArray().length == 0){
                     result="No terms matching the following search query could be found: " + searchQuery;
                             return result;
                   result ="";          
                   for (InfoObject infoObject: myFav.getInfoObjectArray()){
                     result= result+ infoObject.getName() + " has CUID: " + infoObject.getCUID()+ " type "+ infoObject.getKind() + " has childreen "+ infoObject.getChildrenObjects();
    Where guaglanto1 is the title of the favoriteFolder.This code show the CUID,name,kind and children of the favoriteFolder.  Now i want to navigate this folder and get its content (i see from InfoViewApp there are 5 web intelligent report inside the favorite folder) but i don't know how can i get that.
    Anyone can help me to resolve this problem?
    thank you
    best regard
    Andrea

    once you get the SI_ID or SI_CUID of the favorites folder you need to write an additional query to pull all its children using:
    select * from ci_infoobjects where si_parentcuid='<si_cuid of favorites folder>'
    If the favorites folder contains folders with subfolders, this will be a recursive call. You can use query://{select....} or path://
    Look at the BIPlatform documentation in API reference and there is more information on how to use query:// or path://

  • Need efficient queries to retrieve reports inside a folder

    Case 1:
    To retrieve reports in a particular folder -
    I am currently using 2 queries -
    a) retrieving parentid given a folder name
    b) retrieving all reports given the above parent id.
    Can I combine these into 1 query ?
    Case 2:
    I also need to retrieve all reports within a given folder and subfolder. Can this be done with 1 query?
    or do I need to retrieve all objects in the folder and then iterate in a loop
    if folder exists and retrieve the reports.

    Hi Jam
    For Case1:  To retrieve Crystal reports in a particular folder, the following query should work.
    Select COUNT (SI_ID) From CI_INFOOBJECTS where SI_KIND = 'CrystalReport' and SI_PARENT_FOLDER = 22826 and SI_INSTANCE = 0
    Hope this helps.
    ThanksSoni

  • Just moved to Mac from Windows, so far biggest headache is the way folders are treated. I manage several very large websites and involve a lot of files within folders and I need the folders to show the date the last file inside it was changed?

    In my FTP client I can click to sort by date modified which is fine if you are in a folder and then it shows the file dates correctly - but any folders within the root folder don't they seem to display randomly all together at the bottom of the list and it is a nightmare trying to find what folders have files in them that have been changed.
    Is there any way to get the folder to register the last date of a file within it that was modified?

    I dont know the answer yet, but i have noted what appears to be a bug in 10.9 in how it handles folder dates.  Right now i am seeing folder modified dates changing randomly ot "today" - whatever date the parent folder was opened.
    In the past my folders "modified" date was always the same as the last modified date of the items within.  But this only moved down ONE level - if a subfolder's entries were updated the "gradfather" folder did not update.
    But now severa people are reporting random, incorrect folder dates. I hoep this will be corrected soon, but who knows?
    Grant

  • Do I need the Application Support: Logic folder for GarageBand?

    I use GarageBand 10.0.1, but not Logic.  Today, I noticed a Logic folder in Application Support that's almost 800MB.  The largest sub-folder is EXS Factory Samples (637MB), which contains "Drum Kit Designer", "01 Acoustic Pianos" and "07 Guitars".  Since I don't use Logic do I need these folders?  If I delete the Logic folder, will it have any effect on GarageBand?
    Thanks in advance.

    GarageBand 10.0.1 uses Logic samples (that are kept in the Logic folder you've mentioned). I would not delete those .

  • When i change permission of folder why it doesn't change the permission inside that folder?

    When i change permission of folder why it doesn't change the permission to inside  files of that folder?

    have to select "apply to enclosed items" options

  • My bookmarks look like folders. When I show "Edit Bookmarks" I can see individual bookmarks inside folders, inside another folder. I could use some help to correct this, please.

    Bookmarks Look Like Folders

    You can check for problems with the <b>places.sqlite</b> database file in the Firefox profile folder.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
    *Places Maintenance: https://addons.mozilla.org/firefox/addon/places-maintenance/

  • Folder date modified is older than the folders containted inside?

    I have back up folders which date from 2012. I thought they were old until I opened it up and inside the folders have dates that precede it.
    See attached photo.
    So does this mean if the folders inside don't change names, it would mean the date is kept as is in the main folder?
    Why is this the case? It is so hard to see from the dates which are my latest folders to back up to.
    Is this a mistake? I am so confused.

    I have back up folders which date from 2012. I thought they were old until I opened it up and inside the folders have dates that precede it.
    See attached photo.
    So does this mean if the folders inside don't change names, it would mean the date is kept as is in the main folder?
    Why is this the case? It is so hard to see from the dates which are my latest folders to back up to.
    Is this a mistake? I am so confused.

  • Folders inside the Videos folder?

    Hi, is there a way to organize my videos inside de Videos folder?
    Folders inside the Video folder?
    Thank you very much.
    Cheers.

    where is my actual catalogue now? my current one i am using. It has to be on that 1TB right?
    Your actual catalog can be located via Lightroom->Catalog Settings->General tab
    No, it does not have to be on the 1TB drive
    I clicked on catalogue settings and clicked 'show' and it pointed to one of the folders inside that backup folder on the 1TB...i thought they were backups?? Where should my catalogue be?
    Your catalog can go anywhere on any attached hard drive (not a networked hard drive) but usually you would put it on the fastest drive available, which would be your internal drive.
    I tried taking the Folder out of the 1TB that is named Backups but then when i open lightroom it says the current catalogue is missing and asks for me to open a new one. So i put it back in the 1TB folder in the same place and opened lightroom went to recent catalogues and chose it, its back and all is intact.
    You are going to have to move the working catalog file out of that folder. Even though you have found what appears to be the working catalog in the Backups folder, that is the working catalog. Move it to somewhere else, outside of the LIghtroom folder, using your operating system, and then double-click on it to open Lightroom.

  • Work Folders Stopped Working - The sync server needs the user's current user name and password

    Our Work Folders deployment has just stopped working.
    Once the user has logged in to ADFS they get the following error message "The sync server needs the user's current user name and password (0x80c80300)"
    At the same time we see the following error in the file servers SyncShare event log:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider Name="Microsoft-Windows-SyncShare" Guid="{9E6153AD-A829-4B70-B997-8E463A7A111C}" />
    <EventID>1013</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000000</Keywords>
    <TimeCreated SystemTime="2014-12-03T14:48:32.922225100Z" />
    <EventRecordID>1178</EventRecordID>
    <Correlation />
    <Execution ProcessID="1988" ThreadID="2800" />
    <Channel>Microsoft-Windows-SyncShare/Operational</Channel>
    <Computer>fileserver.domain.com</Computer>
    <Security UserID="S-1-5-18" />
    </System>
    - <EventData>
    <Data Name="User">eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6ImVoZWxJMUFwWm9HT2VZdXU5NGZZb21tamUzayJ9.eyJhdWQiOiJodHRwczovL1dpbmRvd3MtU2VydmVyLVdvcmstRm9sZGVycy9WMSIsImlzcyI6Imh0dHA6Ly9hZGZzLmVzaGVyLmFjLnVrL2FkZnMvc2VydmljZXMvdHJ1c3QiLCJpYXQiOjE0MTc2MTgxMTIsImV4cCI6MTQxNzYyMTcxMiwidXBuIjoiRExvdWdobGluQGVzaGVyLmFjLnVrIiwidW5pcXVlX25hbWUiOiJEYW5pZWwgTG91Z2hsaW4iLCJmYW1pbHlfbmFtZSI6IkxvdWdobGluIiwiZ2l2ZW5fbmFtZSI6IkRhbmllbCIsImF1dGhfdGltZSI6IjIwMTQtMTItMDNUMTQ6NDg6MjYuNzU1WiIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsInZlciI6IjEuMCIsImFwcGlkIjoiMTY4RjNFRTQtNjNGQy00NzIzLUE2MUEtNjQ3M0Y2Q0I1MTVDIn0.eCefzniju5qjqxIDdC2KCefkiNBNoGV-B1zg8EsnygUyV0LilPpANpv5uH75JJ9ekv9BN0vz7m6QezHEN4dYc5Z-6UJCzm7Wz6s1yNqVz-Sq5_wf_RrrHkxntcLXT2LHyyLN6ZxJy8uOF4vLw_fLsDzrNHkpaKUoevLAvNLI503IAiKDijKmQ0Qa2hZGsDT57yhKLGtjMXdqwx6FpFpP6vxA9qoUlR1E-tlt0ezTSD8j36djV9VbFpTlfeiH26D0n92T4exQCJkPdVzR42G7KbYyo9Acu0GGf7dnameWMQV9lT-Jtb7hH9xNReuVSVzqgtstsSDJR0mCsKJfLrdKVw</Data>
    <Data Name="Error">0X80C80021 - ECS_E_SYNC_ADFS_UNAUTHORIZED</Data>
    </EventData>
    </Event>
    I have attempted re creating the setup using several blog posts including:
    http://blogs.technet.com/b/filecab/archive/2014/03/03/deploying-work-folders-with-ad-fs-and-web-application-proxy-wap.aspx.  Including deleting all WAP rules, deleting and recreating the Relaying Party Trust and obtaining new certificates for the file
    server.
    ADFS and WAP are working correctly for our Office 365 federations and on-premise SharePoint, Exchange and other web applications
    If I turn ADFS authentication off on the Work Folders server I can successfully connect and setup work folders on a domain joined computer, however as soon as ADFS authentication is enabled I get the above error. 

    Hi,
    As you expressed, it should be an authentication issue. 
    I assume it will work by selecting Windows Authentication instead of ADFS in step shows in following picture. 
    The article also mentioned that the certificate is needed in following computers.
    The self-signed AD FS certificate will need to be exported and installed on the following machines in the test environment:
    Work Folders
    Web Application Proxy
    Domain joined Windows 8.1 client
    Non-domain joined Windows 8.1 client
    Thus I would like to confirm if certificate is also imported. 
    If you have any feedback on our support, please send to [email protected]

  • Import media dialog is not showing me folders, instead showing me every singe file that's inside all of the folders on my desktop? What gives?

    So i'm trying to import media that's on my desktop, one clip that's inside a folder. when I choose import media and the dialog box opens, I choose desktop to navigate to the folder but there are no folders found. FCP starts loading all of the files individually that are inside all of the folders on my desktop. I can't for the life of me figure out why it's doing this. Has anyone else had a similar issue?

    DSounds like you have a folder on the desktop with the name of a camera folder something like DCIM or PRIVATE that makes the application read the containing folder the Desktop as if it were a camera drive.

  • File Name Copy (not text inside the file ) and change the extension of file

    Hi,
    I have a requirement in which I have to copy the file name (not the text inside file ) from one folder/dir to another folder/dir with some another extension.
    Suppose we have file abc.txt of 20kb in a folder ,we need this in another folder with abc.done extension of 0 kb.
    This I need just to trigger a process.
    I have a below code to copy some files from one folder to another but this code copies the complete file not the file name only.Need help.
    package com.sumit.collections;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.nio.channels.FileChannel;
    public class FileMove {
         * @param args
         * @throws IOException
         public static void main(String[] args) throws IOException {
              FileMove fm=new FileMove();
              fm.copyFiles();
         public void copyFiles() throws IOException { 
              File destination=new File("C://soft//test2");
              File srcDir = new File("C://soft//test");
         File[] files = srcDir.listFiles();
         FileChannel in = null;
         FileChannel out = null;
         for (File file : files) { 
         try { 
         in = new FileInputStream(file).getChannel();
         File outFile = new File(destination, file.getName());
         out = new FileOutputStream(outFile).getChannel();
         in.transferTo(0, in.size(), out);
         } finally { 
         if (in != null)
         in.close();
         if (out != null)
         out.close();
    Thanks
    Sumit

    Thanks for all your help.I got the solution.
    package com.sumit.collections;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.List;
    public class DotDoneFile {
         public static void main(String[] args) throws IOException {
              DotDoneFile fm=new DotDoneFile();
              fm.copyFiles1();
         public void copyFiles1() throws IOException { 
              List<String> filnamne = new ArrayList();
              File destDir = new File("C://Barcklays-soft//test2");
              File srcDir = new File("C://Barcklays-soft//test");
              File[] listOfFiles = srcDir.listFiles();
         try{
         for (int i=0;i<listOfFiles.length;i++){
              if (listOfFiles.isFile())
              filnamne.add(listOfFiles[i].getName());
              System.out.println(listOfFiles[i].getName());
              File.createTempFile(listOfFiles[i].getName(), ".done", destDir);
         catch(IOException ioe)
         System.out.println("Exception creating temporary file : " + ioe);

  • Need helpcreating a script to read the name of a folder and adding that name into the permissions of that folder

    Need help creating a script to read the name of a folder (which is the AD Username) and adding that name into the permissions of that folder.
    I have over 100 folders which I need to add the AD user to read and write to their own folder
    Hope you guys understand what I mean

    Just to add, Mac in intergrated into AD and all I need is help in creating the script
    Thanks

Maybe you are looking for

  • Illustrator icon

    I'm using Adobe Illustrator CS3. Before I upgraded my illustrator to CS3 vision this is never happen. Now I cannot able to preview image from the illustrator file icon. Usually after we have saved the file as a .ai format file, the icon of this file

  • HOW WE CAN DISPLY DATE IN WEB-DYNPRO

    Hi friend, i want to one example to up load the date format in web-dynpro abap. THA

  • PP CS5 Effects

    Some effects seem to be gone in CS5, like radial blur. Where can I see a comparison of all old and new effects? Are there any new effects for Premiere CS5? I am very underwhelmed by CS5 and the whole 64 bit Mercury revolution. Seems high performance

  • Inserting columns from internal table to a database table!

    Hi people, How do I go about to insert columns from an internal table -intab- into an data base table -dbtab-. These tables contain some similar columns, not all. A code example would be much appriciated! /Armin

  • Cannot open created h264 file

    With FCPX I've created a movie... Now I've exported the movie to a .264 file with compressor using the "H.264 for Blu-ray"-profile. The export finishes but I'm unable to open the file... Quicktime-Player tells me that it does not know this type of fi