/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | UnixDirectoryListingFormatter.java | 13 * See the License for the specific language governing permissions and
58 Permissions permissions = fileSystemEntry.getPermissions() != null ? fileSystemEntry.getPermissions() : Permissions.DEFAULT;
59 String permissionsStr = StringUtil.padRight(permissions.asRwxString(), 9);
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
H A D | UserAccountTest.groovy | 13 * See the License for the specific language governing permissions and 102 // No file permissions - readable by all 105 // UserAccount has no username or group; use World permissions 126 // No file permissions - writable by all 129 // UserAccount has no username or group; use World permissions 150 // No file permissions - executable by all 153 // UserAccount has no username or group; use World permissions 198 def permissions = permissionsString ? new Permissions(permissionsString) : null 199 return new FileEntry(path: '', owner: owner, group: group, permissions: permissions) [all...] |
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
H A D | AbstractStoreFileCommandHandlerTestCase.groovy | 13 * See the License for the specific language governing permissions and 46 fileSystem.getEntry(FILE).permissions = Permissions.NONE 52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x') 59 fileSystem.getEntry(DIR).permissions = new Permissions('rw-rw-rw-') 97 assert fileEntry.permissions == userAccount.defaultPermissionsForNewFile
|
H A D | CdupCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 54 dir.permissions = new Permissions('rw-rw-rw-')
|
H A D | CwdCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 67 dir.permissions = new Permissions('rw-rw-rw-')
|
H A D | DeleCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 79 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
|
H A D | ListCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 97 fileSystem.getEntry(DIR).permissions = new Permissions('-wx-wx-wx')
|
H A D | MkdCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 47 assert dirEntry.permissions == PERMISSIONS 56 assert dirEntry.permissions == UserAccount.DEFAULT_PERMISSIONS_FOR_NEW_DIRECTORY 76 fileSystem.getEntry(PARENT).permissions = new Permissions('r-xr-xr-x') 82 fileSystem.getEntry(PARENT).permissions = new Permissions('rw-rw-rw-')
|
H A D | NlstCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 81 fileSystem.getEntry(DIR).permissions = new Permissions('-wx-wx-wx')
|
H A D | RetrCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 75 fileSystem.getEntry(FILE).permissions = Permissions.NONE 81 fileSystem.getEntry(DIR).permissions = Permissions.NONE
|
H A D | RmdCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 95 fileSystem.getEntry(PARENT).permissions = new Permissions('r-xr-xr-x')
|
H A D | RnfrCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 67 fileSystem.getEntry(FILE).permissions = new Permissions('-wx-wx-wx')
|
H A D | RntoCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 110 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x')
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/filesystem/ |
H A D | AbstractFakeFileSystemTestCase.groovy | 13 * See the License for the specific language governing permissions and 123 def permissions = new Permissions('-wxrwx---') 125 group: 'group', permissions: permissions) 134 assert entry.permissions == permissions
|
H A D | AbstractFileSystemEntryTestCase.groovy | 13 * See the License for the specific language governing permissions and
73 assert entry.permissions == new Permissions(PERM)
|
H A D | DirectoryEntryTest.groovy | 13 * See the License for the specific language governing permissions and
33 entry.permissions = PERMISSIONS
41 assert clone.permissions == PERMISSIONS
|
H A D | FileEntryTest.groovy | 13 * See the License for the specific language governing permissions and
115 entry.permissions = PERMISSIONS
124 assert clone.permissions == PERMISSIONS
|
H A D | PermissionsTest.groovy | 13 * See the License for the specific language governing permissions and
78 def permissions = new Permissions(rwxString)
79 LOG.info("Testing can read/write/execute for $permissions")
80 assert permissions.canUserRead() == canUserRead
81 assert permissions.canUserWrite() == canUserWrite
82 assert permissions.canUserExecute() == canUserExecute
83 assert permissions.canGroupRead() == canGroupRead
84 assert permissions.canGroupWrite() == canGroupWrite
85 assert permissions.canGroupExecute() == canGroupExecute
86 assert permissions [all...] |
H A D | UnixDirectoryListingFormatterTest.groovy | 13 * See the License for the specific language governing permissions and
53 owner: OWNER, group: GROUP, permissions: FILE_PERMISSIONS)
83 owner: OWNER, group: GROUP, permissions: DIR_PERMISSIONS)
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/ |
H A D | UserAccount.java | 13 * See the License for the specific language governing permissions and
26 * directory, list of groups to which this user belongs, and default permissions applied to
37 * The default value for <code>defaultPermissionsForNewFile</code> is read and write permissions for
39 * write and execute permissions for all (user/group/world).
214 Permissions permissions = entry.getPermissions();
215 if (permissions == null) {
220 return permissions.canUserRead();
223 return permissions.canGroupRead();
225 return permissions.canWorldRead();
235 Permissions permissions [all...] |
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
H A D | AbstractFileSystemEntry.java | 13 * See the License for the specific language governing permissions and
62 return permissions;
65 public void setPermissions(Permissions permissions) {
argument 66 this.permissions = permissions;
69 private Permissions permissions;
field in class:AbstractFileSystemEntry 119 this.permissions = new Permissions(permissionsString);
|
H A D | UnixDirectoryListingFormatter.java | 13 * See the License for the specific language governing permissions and
54 Permissions permissions = fileSystemEntry.getPermissions() != null ? fileSystemEntry.getPermissions() : Permissions.DEFAULT;
55 String permissionsStr = StringUtil.padRight(permissions.asRwxString(), 9);
|
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
H A D | UserAccountTest.groovy | 13 * See the License for the specific language governing permissions and 104 // No file permissions - readable by all 107 // UserAccount has no username or group; use World permissions 128 // No file permissions - writable by all 131 // UserAccount has no username or group; use World permissions 152 // No file permissions - executable by all 155 // UserAccount has no username or group; use World permissions 200 def permissions = permissionsString ? new Permissions(permissionsString) : null 201 return new FileEntry(path: '', owner: owner, group: group, permissions: permissions) [all...] |
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
H A D | AbstractStoreFileCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 46 fileSystem.getEntry(FILE).permissions = Permissions.NONE 52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x') 59 fileSystem.getEntry(DIR).permissions = new Permissions('rw-rw-rw-') 97 assert fileEntry.permissions == userAccount.defaultPermissionsForNewFile
|
H A D | CdupCommandHandlerTest.groovy | 13 * See the License for the specific language governing permissions and 54 dir.permissions = new Permissions('rw-rw-rw-')
|