"use strict";var ptp=require("../.."),util=require("./util"),onConnected;onConnected=function(e){console.log("Getting info for object "+e+"..."),ptp.getObjectInfo({objectHandle:e,onSuccess:function(e){console.log(e.objectInfo);switch(e.objectInfo.objectFormat){case ptp.objectFormatCodes.association:console.log("Association (e.g. folder)");break;case ptp.objectFormatCodes.exifJpeg:console.log("JPEG file")}ptp.disconnect()},onFailure:function(){console.error("Failed"),ptp.disconnect()}})},module.exports=function(e,t){require("./connect")({host:e,onConnected:onConnected.bind(this,t)})};