All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.asteraether.tomlib.util.IOUtil Maven / Gradle / Ivy

The newest version!
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.github.asteraether.tomlib.util;

import java.io.File;
import java.util.Arrays;
import java.util.List;

/**
 *
 * @author neumann6
 */
public class IOUtil {

    /**
     *
     * @param dir
     * @return
     */
    public static List getDirList(File dir) {
        File[] directoryListing = dir.listFiles();
        if (directoryListing != null) {
            return Arrays.asList(directoryListing);
        } else {
            return null;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy