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