List directory tree structure using Python

写了一个小脚本来输出目录树:

效果如下所示:

-[ java ]
  -[ com ]
    -[ nostra13 ]
      -[ universalimageloader ]
        -[ cache ]
          -[ disc ]
            |- DiskCache.java
            |
            -[ impl ]
              |- BaseDiskCache.java
              |- LimitedAgeDiskCache.java
              |- UnlimitedDiskCache.java
              |
              -[ ext ]
                |- DiskLruCache.java
                |- LruDiskCache.java
                |- StrictLineReader.java
                |- Util.java
                |
            -[ naming ]
              |- FileNameGenerator.java
              |- HashCodeFileNameGenerator.java
              |- Md5FileNameGenerator.java
              |
          -[ memory ]
            |- BaseMemoryCache.java
            |- LimitedMemoryCache.java
            |- MemoryCache.java
            |
            -[ impl ]
              |- FIFOLimitedMemoryCache.java
              |- FuzzyKeyMemoryCache.java
              |- LargestLimitedMemoryCache.java
              |- LimitedAgeMemoryCache.java
              |- LRULimitedMemoryCache.java
              |- LruMemoryCache.java
              |- UsingFreqLimitedMemoryCache.java
              |- WeakMemoryCache.java
              |
        -[ core ]
          |- DefaultConfigurationFactory.java
          |- DisplayBitmapTask.java
          |- DisplayImageOptions.java
          |- ImageLoader.java
          |- ImageLoaderConfiguration.java
          |- ImageLoaderEngine.java
          |- ImageLoadingInfo.java
          |- LoadAndDisplayImageTask.java
          |- ProcessAndDisplayImageTask.java
          |
          -[ assist ]
            |- ContentLengthInputStream.java
            |- FailReason.java
            |- FlushedInputStream.java
            |- ImageScaleType.java
            |- ImageSize.java
            |- LoadedFrom.java
            |- QueueProcessingType.java
            |- ViewScaleType.java
            |
            -[ deque ]
              |- BlockingDeque.java
              |- Deque.java
              |- LIFOLinkedBlockingDeque.java
              |- LinkedBlockingDeque.java
              |
          -[ decode ]
            |- BaseImageDecoder.java
            |- ImageDecoder.java
            |- ImageDecodingInfo.java
            |
          -[ display ]
            |- BitmapDisplayer.java
            |- CircleBitmapDisplayer.java
            |- FadeInBitmapDisplayer.java
            |- RoundedBitmapDisplayer.java
            |- RoundedVignetteBitmapDisplayer.java
            |- SimpleBitmapDisplayer.java
            |
          -[ download ]
            |- BaseImageDownloader.java
            |- ImageDownloader.java
            |
          -[ imageaware ]
            |- ImageAware.java
            |- ImageViewAware.java
            |- NonViewAware.java
            |- ViewAware.java
            |
          -[ listener ]
            |- ImageLoadingListener.java
            |- ImageLoadingProgressListener.java
            |- PauseOnScrollListener.java
            |- SimpleImageLoadingListener.java
            |
          -[ process ]
            |- BitmapProcessor.java
            |
        -[ utils ]
          |- DiskCacheUtils.java
          |- ImageSizeUtils.java
          |- IoUtils.java
          |- L.java
          |- MemoryCacheUtils.java
          |- StorageUtils.java

koupit-pilulky.com

发表评论

您的电子邮箱地址不会被公开。

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据