zoukankan      html  css  js  c++  java
  • java输出一个目录下的子目录

    java输出一个目录下的子目录

    package com.vfsd.core;
    
    import java.io.File;
    
    public class ListDir {
        
        public static void main(String[] args)
        {
            File dir1 = new File("K:\Qt\Qt5.9.6\5.9.6\msvc2015_64\include");
            listDir1(dir1);
        }
        
        public static void listDir1(File dirParam)
        {
            File[] files1 = dirParam.listFiles();
            for(int k=0;k<files1.length;k++)
            {
                File fileIndex = files1[k];
                if(fileIndex.isDirectory())
                {
                    System.out.println(fileIndex.getPath());
                }
            }
        }
    
    }

    K:QtQt5.9.65.9.6msvc2015_64includeActiveQt
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DAnimation
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DCore
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DExtras
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DInput
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DLogic
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuick
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuickAnimation
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuickExtras
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuickInput
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuickRender
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DQuickScene2D
    K:QtQt5.9.65.9.6msvc2015_64includeQt3DRender
    K:QtQt5.9.65.9.6msvc2015_64includeQtAccessibilitySupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtANGLE
    K:QtQt5.9.65.9.6msvc2015_64includeQtBluetooth
    K:QtQt5.9.65.9.6msvc2015_64includeQtCharts
    K:QtQt5.9.65.9.6msvc2015_64includeQtConcurrent
    K:QtQt5.9.65.9.6msvc2015_64includeQtCore
    K:QtQt5.9.65.9.6msvc2015_64includeQtDataVisualization
    K:QtQt5.9.65.9.6msvc2015_64includeQtDBus
    K:QtQt5.9.65.9.6msvc2015_64includeQtDesigner
    K:QtQt5.9.65.9.6msvc2015_64includeQtDesignerComponents
    K:QtQt5.9.65.9.6msvc2015_64includeQtDeviceDiscoverySupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtEglSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtEventDispatcherSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtFbSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtFontDatabaseSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtGamepad
    K:QtQt5.9.65.9.6msvc2015_64includeQtGui
    K:QtQt5.9.65.9.6msvc2015_64includeQtHelp
    K:QtQt5.9.65.9.6msvc2015_64includeQtLocation
    K:QtQt5.9.65.9.6msvc2015_64includeQtMultimedia
    K:QtQt5.9.65.9.6msvc2015_64includeQtMultimediaQuick_p
    K:QtQt5.9.65.9.6msvc2015_64includeQtMultimediaWidgets
    K:QtQt5.9.65.9.6msvc2015_64includeQtNetwork
    K:QtQt5.9.65.9.6msvc2015_64includeQtNetworkAuth
    K:QtQt5.9.65.9.6msvc2015_64includeQtNfc
    K:QtQt5.9.65.9.6msvc2015_64includeQtOpenGL
    K:QtQt5.9.65.9.6msvc2015_64includeQtOpenGLExtensions
    K:QtQt5.9.65.9.6msvc2015_64includeQtPacketProtocol
    K:QtQt5.9.65.9.6msvc2015_64includeQtPlatformCompositorSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtPlatformHeaders
    K:QtQt5.9.65.9.6msvc2015_64includeQtPositioning
    K:QtQt5.9.65.9.6msvc2015_64includeQtPrintSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtPurchasing
    K:QtQt5.9.65.9.6msvc2015_64includeQtQml
    K:QtQt5.9.65.9.6msvc2015_64includeQtQmlDebug
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuick
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuickControls2
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuickParticles
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuickTemplates2
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuickTest
    K:QtQt5.9.65.9.6msvc2015_64includeQtQuickWidgets
    K:QtQt5.9.65.9.6msvc2015_64includeQtRemoteObjects
    K:QtQt5.9.65.9.6msvc2015_64includeQtRepParser
    K:QtQt5.9.65.9.6msvc2015_64includeQtScript
    K:QtQt5.9.65.9.6msvc2015_64includeQtScriptTools
    K:QtQt5.9.65.9.6msvc2015_64includeQtScxml
    K:QtQt5.9.65.9.6msvc2015_64includeQtSensors
    K:QtQt5.9.65.9.6msvc2015_64includeQtSerialBus
    K:QtQt5.9.65.9.6msvc2015_64includeQtSerialPort
    K:QtQt5.9.65.9.6msvc2015_64includeQtSql
    K:QtQt5.9.65.9.6msvc2015_64includeQtSvg
    K:QtQt5.9.65.9.6msvc2015_64includeQtTest
    K:QtQt5.9.65.9.6msvc2015_64includeQtTextToSpeech
    K:QtQt5.9.65.9.6msvc2015_64includeQtThemeSupport
    K:QtQt5.9.65.9.6msvc2015_64includeQtUiPlugin
    K:QtQt5.9.65.9.6msvc2015_64includeQtUiTools
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebChannel
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebEngine
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebEngineCore
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebEngineWidgets
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebSockets
    K:QtQt5.9.65.9.6msvc2015_64includeQtWebView
    K:QtQt5.9.65.9.6msvc2015_64includeQtWidgets
    K:QtQt5.9.65.9.6msvc2015_64includeQtWinExtras
    K:QtQt5.9.65.9.6msvc2015_64includeQtXml
    K:QtQt5.9.65.9.6msvc2015_64includeQtXmlPatterns
    K:QtQt5.9.65.9.6msvc2015_64includeQtZlib
  • 相关阅读:
    twfont
    判断数组中某个元素的个数
    vue swiper中的大坑
    this指向问题
    vue.nextTick简单的用法
    类图解析
    设计模式
    设计模式
    Http Notes
    VS Notes
  • 原文地址:https://www.cnblogs.com/herd/p/11707987.html
Copyright © 2011-2022 走看看