/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/filesystem/ |
DirectoryListingFormatter.java | 17 package org.mockftpserver.fake.filesystem;
|
FileSystemEntry.java | 17 package org.mockftpserver.fake.filesystem;
|
InvalidFilenameException.java | 16 package org.mockftpserver.fake.filesystem; 28 private static final String MESSAGE_KEY = "filesystem.pathIsNotValid";
|
DirectoryEntry.java | 16 package org.mockftpserver.fake.filesystem;
|
UnixFakeFileSystem.java | 16 package org.mockftpserver.fake.filesystem;
21 * Implementation of the {@link FileSystem} interface that simulates a Unix
81 * @return true if the specified path component is a root for this filesystem
|
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/ |
fake_filesystem_shutil_test.py | 34 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 35 self.shutil = fake_filesystem_shutil.FakeShutilModule(self.filesystem) 39 self.filesystem.CreateDirectory(directory) 40 self.filesystem.CreateDirectory('%s/subdir' % directory) 41 self.filesystem.CreateFile('%s/subfile' % directory) 42 self.assertTrue(self.filesystem.Exists(directory)) 44 self.assertFalse(self.filesystem.Exists(directory)) 49 src_obj = self.filesystem.CreateFile(src_file) 51 self.assertTrue(self.filesystem.Exists(src_file)) 52 self.assertFalse(self.filesystem.Exists(dst_file) [all...] |
fake_filesystem_shutil.py | 28 >>> filesystem = fake_filesystem.FakeFilesystem() 29 >>> shutil_module = fake_filesystem_shutil.FakeShutilModule(filesystem) 32 >>> new_file = filesystem.CreateFile('/src/new-file') 34 >>> filesystem.Exists('/dst/new-file') 39 >>> filesystem.Exists('/src/new-file') 58 def __init__(self, filesystem): 59 """Construct fake shutil module using the fake filesystem. 62 filesystem: FakeFilesystem used to provide file system information 64 self.filesystem = filesystem [all...] |
fake_filesystem_test.py | 113 filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 114 fake_os = fake_filesystem.FakeOsModule(filesystem) 116 filesystem.CreateFile(file_path, contents='contents here1', inode=42) 119 file_obj = filesystem.GetObject(file_path) 124 filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 125 fake_os = fake_filesystem.FakeOsModule(filesystem) 127 filesystem.CreateDirectory(dirpath, inode=42) 130 dir_obj = filesystem.GetObject(dirpath) 151 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 155 self.assertEqual(self.root_name, self.filesystem.NormalizePath('') [all...] |
fake_filesystem_glob_test.py | 33 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 34 self.glob = fake_filesystem_glob.FakeGlobModule(self.filesystem) 36 self.filesystem.CreateDirectory(directory) 37 self.filesystem.CreateDirectory('%s/subdir' % directory) 38 self.filesystem.CreateDirectory('%s/subdir2' % directory) 39 self.filesystem.CreateFile('%s/subfile' % directory) 40 self.filesystem.CreateFile('[Temp]')
|
fake_tempfile_test.py | 66 self.filesystem = fake_filesystem.FakeFilesystem(path_separator='/') 67 self.tempfile = fake_tempfile.FakeTempfileModule(self.filesystem) 117 self.assertTrue(self.filesystem.GetObject(obj.name)) 119 self.assertRaises(IOError, self.filesystem.GetObject, obj.name) 125 file_obj = self.filesystem.GetObject(obj.name) 130 file_obj = self.filesystem.GetObject(obj.name) 134 next_fd = len(self.filesystem.open_files) 141 self.assertTrue(self.filesystem.Exists(temporary[1])) 142 self.assertEqual(self.filesystem.GetObject(temporary[1]).st_mode, 150 self.filesystem.CreateDirectory('/dir' [all...] |
fake_filesystem.py | 17 """A fake filesystem implementation for unit testing. 29 >>> filesystem = fake_filesystem.FakeFilesystem() 30 >>> os_module = fake_filesystem.FakeOsModule(filesystem) 36 >>> new_file = filesystem.CreateFile(pathname) 42 ... filesystem.CreateFile(pathname) 45 ... assert e.strerror == 'File already exists in fake filesystem' 48 >>> filesystem.RemoveObject(pathname) 53 >>> beatles_file = filesystem.CreateFile(pathname, 59 >>> file_module = fake_filesystem.FakeFileOpen(filesystem) 173 contents: the contents of the filesystem object; should be a string fo [all...] |
/external/chromium-trace/catapult/third_party/pyfakefs/pyfakefs/ |
fake_filesystem_shutil.py | 28 >>> filesystem = fake_filesystem.FakeFilesystem() 29 >>> shutil_module = fake_filesystem_shutil.FakeShutilModule(filesystem) 32 >>> new_file = filesystem.CreateFile('/src/new-file') 34 >>> filesystem.Exists('/dst/new-file') 39 >>> filesystem.Exists('/src/new-file') 58 def __init__(self, filesystem): 59 """Construct fake shutil module using the fake filesystem. 62 filesystem: FakeFilesystem used to provide file system information 64 self.filesystem = filesystem [all...] |
fake_filesystem.py | 17 """A fake filesystem implementation for unit testing. 29 >>> filesystem = fake_filesystem.FakeFilesystem() 30 >>> os_module = fake_filesystem.FakeOsModule(filesystem) 36 >>> new_file = filesystem.CreateFile(pathname) 42 ... filesystem.CreateFile(pathname) 45 ... assert e.strerror == 'File already exists in fake filesystem' 48 >>> filesystem.RemoveObject(pathname) 53 >>> beatles_file = filesystem.CreateFile(pathname, 59 >>> file_module = fake_filesystem.FakeFileOpen(filesystem) 190 contents: the contents of the filesystem object; should be a string fo [all...] |
/external/mockftpserver/MockFtpServer/src/test/java/org/mockftpserver/fake/example/ |
SimpleUnixFakeFtpServerTest.java | 20 import org.mockftpserver.fake.filesystem.DirectoryEntry;
21 import org.mockftpserver.fake.filesystem.FileEntry;
22 import org.mockftpserver.fake.filesystem.FileSystem;
23 import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
29 * filesystem.
38 FileSystem fileSystem = new UnixFakeFileSystem();
39 fileSystem.add(new DirectoryEntry("/data"));
40 fileSystem.add(new FileEntry("/data/file1.txt", "abcdef 1234567890")); [all...] |
SimpleWindowsFakeFtpServerTest.java | 20 import org.mockftpserver.fake.filesystem.DirectoryEntry;
21 import org.mockftpserver.fake.filesystem.FileEntry;
22 import org.mockftpserver.fake.filesystem.FileSystem;
23 import org.mockftpserver.fake.filesystem.WindowsFakeFileSystem;
29 * filesystem.
38 FileSystem fileSystem = new WindowsFakeFileSystem();
39 fileSystem.add(new DirectoryEntry("c:\\data"));
40 fileSystem.add(new FileEntry("c:\\data\\file1.txt", "abcdef 1234567890")); [all...] |
WindowsFakeFileSystemPermissionsTest.java | 21 import org.mockftpserver.fake.filesystem.DirectoryEntry;
22 import org.mockftpserver.fake.filesystem.FileEntry;
23 import org.mockftpserver.fake.filesystem.FileSystem;
24 import org.mockftpserver.fake.filesystem.Permissions;
25 import org.mockftpserver.fake.filesystem.WindowsFakeFileSystem;
31 * filesystem, and including file/directory permissions.
44 FileSystem fileSystem = new WindowsFakeFileSystem();
65 fileSystem.add(directoryEntry1); [all...] |
RemoteFileTest.java | 20 import org.mockftpserver.fake.filesystem.FileEntry;
21 import org.mockftpserver.fake.filesystem.FileSystem;
22 import org.mockftpserver.fake.filesystem.UnixFakeFileSystem;
61 FileSystem fileSystem = new UnixFakeFileSystem();
62 fileSystem.add(new FileEntry(FILE, CONTENTS));
63 fakeFtpServer.setFileSystem(fileSystem);
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/ |
RunFakeFtpServer.groovy | 20 import org.mockftpserver.fake.filesystem.DirectoryEntry
21 import org.mockftpserver.fake.filesystem.FileEntry
22 import org.mockftpserver.fake.filesystem.UnixFakeFileSystem
37 def fileSystem = new UnixFakeFileSystem()
38 fileSystem.createParentDirectoriesAutomatically = true
39 fileSystem.add(new DirectoryEntry(HOME_DIR))
40 fileSystem.add(new DirectoryEntry("$HOME_DIR/subdir"))
41 fileSystem.add(new DirectoryEntry("$HOME_DIR/subdir2"))
42 fileSystem.add(new FileEntry(path: "$HOME_DIR/abc.txt", contents: '1234567890'))
43 fileSystem.add(new FileEntry(path: "$HOME_DIR/def.txt", contents: '1234567890')) [all...] |
/external/selinux/libsepol/tests/policies/test-cond/ |
refpolicy-base.conf | 5 class filesystem 140 class filesystem 977 allow bin_t fs_t:filesystem associate; 978 allow bin_t noxattrfs:filesystem associate; 980 allow sbin_t fs_t:filesystem associate; 981 allow sbin_t noxattrfs:filesystem associate; 983 allow ls_exec_t fs_t:filesystem associate; 984 allow ls_exec_t noxattrfs:filesystem associate; 987 allow shell_exec_t fs_t:filesystem associate; 988 allow shell_exec_t noxattrfs:filesystem associate [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.core.filesystem_1.3.1.R36x_v20100727-0745.jar | |
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/ |
ServerConfiguration.java | 18 import org.mockftpserver.fake.filesystem.FileSystem;
29 * @return the {@link FileSystem} for this server
31 public FileSystem getFileSystem();
|
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/ |
ANTLRFileStream.as | 2 import flash.filesystem.File; 3 import flash.filesystem.FileMode; 4 import flash.filesystem.FileStream;
|
/external/mockftpserver/MockFtpServer/src/test/groovy/org/mockftpserver/fake/command/ |
AbstractStoreFileCommandHandlerTestCase.groovy | 21 import org.mockftpserver.fake.filesystem.FileEntry 22 import org.mockftpserver.fake.filesystem.FileSystemEntry 23 import org.mockftpserver.fake.filesystem.FileSystemException 24 import org.mockftpserver.fake.filesystem.Permissions 45 fileSystem.add(new FileEntry(path: FILE)) 46 fileSystem.getEntry(FILE).permissions = Permissions.NONE 48 assertSessionReply(ReplyCodes.WRITE_FILE_ERROR, ['filesystem.cannotWrite', FILE]) 52 fileSystem.getEntry(DIR).permissions = new Permissions('r-xr-xr-x') 54 assertSessionReply(ReplyCodes.WRITE_FILE_ERROR, ['filesystem.cannotWrite', DIR]) 58 fileSystem.add(new FileEntry(path: FILE) [all...] |
ListCommandHandlerTest.groovy | 23 import org.mockftpserver.fake.filesystem.DirectoryEntry 24 import org.mockftpserver.fake.filesystem.DirectoryListingFormatter 25 import org.mockftpserver.fake.filesystem.FileEntry 26 import org.mockftpserver.fake.filesystem.FileSystemEntry 27 import org.mockftpserver.fake.filesystem.FileSystemException 28 import org.mockftpserver.fake.filesystem.Permissions 45 fileSystem.add(entry) 55 fileSystem.add(entry1) 56 fileSystem.add(entry2) 57 fileSystem.add(entry3 [all...] |
/bootable/recovery/mtdutils/ |
mounts.c | 30 const char *filesystem; member in struct:MountedVolume 51 free((char *)volume->filesystem); 95 v->filesystem = strdup(mentry->mnt_type); 158 return mount(volume->device, volume->mount_point, volume->filesystem,
|