Package

Source Code of TestGetParent

import jcifs.smb.SmbFile;

public class TestGetParent
{

    public static void main( String argv[] ) throws Exception
    {
        if( argv.length < 1 ) {
            throw new IllegalArgumentException( "smb:// URL is required" );
        }

        SmbFile f = new SmbFile(argv[0]);

        System.out.println("  getPath: " + f.getPath());
        System.out.println("getParent: " + f.getParent());
    }
}
TOP

Related Classes of TestGetParent

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.