public class FtpLsCommand extends FtpCommand
Modifier and Type | Field and Description |
---|---|
protected String |
FLAG_INDICATE_FOLDER_FORMAT
String representing indicate directory with a trailing / format.
|
protected String |
FLAG_INDICATE_FOLDER_LONG_FORMAT
String representing long format and indicate directory
with a trailing / format.
|
protected String |
FLAG_INDICATE_FOLDER_LONG_SHOW_PERIODS_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_INDICATE_FOLDER_SHOW_PERIODS_FORMAT
String representing show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_INDICATE_FOLDER_SHOW_PERIODS_LONG_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_LONG_FORMAT
String representing the long format.
|
protected String |
FLAG_LONG_INDICATE_FOLDER_FORMAT
String representing long format and indicate directory with
a trailing / format.
|
protected String |
FLAG_LONG_INDICATE_FOLDER_SHOW_PERIODS_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_LONG_SHOW_PERIODS_INDICATE_FOLDER_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_LONG_SHOW_STARTS_WITH_PERIOD_FORMAT
String representing long format and show entries that start
with "." format.
|
protected String |
FLAG_NAMES_ONLY
String representing the names only.
|
protected String |
FLAG_SHOW_PERIODS_INDICATE_FOLDER_FORMAT
String representing show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_SHOW_PERIODS_INDICATE_FOLDER_LONG_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_SHOW_PERIODS_LONG_INDICATE_FOLDER_FORMAT
String representing long and show start with period
and indicate directory with a trailing / format.
|
protected String |
FLAG_SHOW_STARTS_WITH_PERIOD_FORMAT
String representing show entries that start with "." format.
|
protected String |
FLAG_SHOW_STARTS_WITH_PERIOD_LONG_FORMAT
String representing long format and show entries that
start with "." format.
|
Constructor and Description |
---|
FtpLsCommand()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(FtpServerChannel channel,
String cmdKey,
Argument[] flags,
Argument[] args)
Execute a command.
|
protected int[] |
getPotentialArgs()
Gets the argument type a particular flag.
|
protected String[] |
getPotentialFlags()
Gets the potentials flags.
|
protected void |
handleLog(FtpServerChannel channel,
Exception exception)
Log errors.
|
protected void |
loadBuffer(StringBuffer buffer,
Item item,
boolean indicateFolder,
FtpSession psession,
CommonManager cm,
TimeZone timezone,
int currCalYear,
Calendar currCalLessSixMonths)
Add to the buffer the data of one Document or Folder that will be
sent to the FTP client.
|
protected void |
loadBufferNamesOnly(StringBuffer buffer,
Item item,
boolean indicateFolder)
Add to the buffer only the name of the Document or Folder.
|
checkLoggedIn, denyGuestAccessForWriteableCommands, encodeArgument, formatCmdline, getHomeFolderPath, handleException, normalizePath, run
protected final String FLAG_NAMES_ONLY
protected final String FLAG_LONG_FORMAT
protected final String FLAG_SHOW_STARTS_WITH_PERIOD_FORMAT
protected final String FLAG_LONG_SHOW_STARTS_WITH_PERIOD_FORMAT
protected final String FLAG_SHOW_STARTS_WITH_PERIOD_LONG_FORMAT
protected final String FLAG_INDICATE_FOLDER_FORMAT
protected final String FLAG_LONG_INDICATE_FOLDER_FORMAT
protected final String FLAG_INDICATE_FOLDER_LONG_FORMAT
protected final String FLAG_SHOW_PERIODS_INDICATE_FOLDER_FORMAT
protected final String FLAG_INDICATE_FOLDER_SHOW_PERIODS_FORMAT
protected final String FLAG_LONG_SHOW_PERIODS_INDICATE_FOLDER_FORMAT
protected final String FLAG_LONG_INDICATE_FOLDER_SHOW_PERIODS_FORMAT
protected final String FLAG_SHOW_PERIODS_LONG_INDICATE_FOLDER_FORMAT
protected final String FLAG_SHOW_PERIODS_INDICATE_FOLDER_LONG_FORMAT
protected final String FLAG_INDICATE_FOLDER_SHOW_PERIODS_LONG_FORMAT
protected final String FLAG_INDICATE_FOLDER_LONG_SHOW_PERIODS_FORMAT
protected void execute(FtpServerChannel channel, String cmdKey, Argument[] flags, Argument[] args) throws FtpException, FdkException, Exception
execute
in class FtpCommand
FtpException
FdkException
Exception
protected void loadBufferNamesOnly(StringBuffer buffer, Item item, boolean indicateFolder) throws Exception
Exception
protected void loadBuffer(StringBuffer buffer, Item item, boolean indicateFolder, FtpSession psession, CommonManager cm, TimeZone timezone, int currCalYear, Calendar currCalLessSixMonths) throws Exception
Exception
protected String[] getPotentialFlags()
getPotentialFlags
in class FtpCommand
protected int[] getPotentialArgs()
getPotentialArgs
in class FtpCommand
protected void handleLog(FtpServerChannel channel, Exception exception) throws Exception
Exception
Copyright © 2023. All rights reserved.