1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.waarp.ftp.filesystembased;
19
20 import org.waarp.common.command.exception.CommandAbstractException;
21 import org.waarp.common.file.filesystembased.FilesystemBasedDirImpl;
22 import org.waarp.common.file.filesystembased.FilesystemBasedOptsMLSxImpl;
23 import org.waarp.ftp.core.file.FtpDir;
24 import org.waarp.ftp.core.file.FtpFile;
25 import org.waarp.ftp.core.session.FtpSession;
26
27
28
29
30
31
32
33 public abstract class FilesystemBasedFtpDir extends FilesystemBasedDirImpl implements FtpDir {
34
35
36
37
38 public FilesystemBasedFtpDir(FtpSession session) {
39 super(session, new FilesystemBasedOptsMLSxImpl());
40 }
41
42 public FtpFile setUniqueFile()
43 throws CommandAbstractException {
44 return (FtpFile) super.setUniqueFile();
45 }
46
47 public FtpFile setFile(String path,
48 boolean append) throws CommandAbstractException {
49 return (FtpFile) super.setFile(path, append);
50 }
51 }