FileConnection fc = (FileConnection) Connector.open("file://localhost/" + currDirName + fileName);
if (!fc.exists())
throw new IOException(T._("File does not exists."));
Form props = new Form(T._("Properties") + ": " + fileName);
props.addCommand(backToBCommand);
props.setCommandListener(this);
props.append(new StringItem(T._("Location"), currDirName));
props.append(new StringItem(T._("Type"), fc.isDirectory() ? T._("Directory") : T._("Regular File")));
props.append(new StringItem(T._("Size"), Long.toString((fc.isDirectory() ? fc.directorySize(true) : fc.fileSize()))));