django_ftpserver.filesystems¶
- class django_ftpserver.filesystems.DjangoGCloudStoragePatch¶
StoragePatch for DjangoGCloudStorage(provided by django-gcloud-storage).
- class django_ftpserver.filesystems.FileSystemStoragePatch¶
StoragePatch for Django’s FileSystemStorage.
- class django_ftpserver.filesystems.PseudoStat(st_size, st_mtime, st_nlink, st_mode, st_uid, st_gid, st_dev, st_ino)¶
- st_dev¶
Alias for field number 6
- st_gid¶
Alias for field number 5
- st_ino¶
Alias for field number 7
- st_mode¶
Alias for field number 3
- st_mtime¶
Alias for field number 1
- st_nlink¶
Alias for field number 2
- st_size¶
Alias for field number 0
- st_uid¶
Alias for field number 4
- class django_ftpserver.filesystems.S3Boto3StoragePatch¶
StoragePatch for S3Boto3Storage(provided by django-storages).
- class django_ftpserver.filesystems.StorageFS(root, cmd_channel)¶
FileSystem for bridge to Django storage.
- apply_patch()¶
apply adjustment patch for storage
- chdir(path)¶
Change the current directory. If this method is overridden it is vital that cwd attribute gets set.
- chmod(path, mode)¶
Change file/directory mode.
- get_group_by_gid(gid)¶
Return the groupname associated with group id. If this can’t be determined return raw gid instead. On Windows just return “group”.
- get_user_by_uid(uid)¶
Return the username associated with user id. If this can’t be determined return raw uid instead. On Windows just return “owner”.
- getmtime(path)¶
Return the last modified time as a number of seconds since the epoch.
- getsize(path)¶
Return the size of the specified file in bytes.
- isdir(path)¶
Return True if path is a directory.
- isfile(path)¶
Return True if path is a file.
- islink(path)¶
Return True if path is a symbolic link.
- lexists(path)¶
Return True if path refers to an existing path, including a broken or circular symbolic link.
- listdir(path)¶
List the content of a directory.
- lstat(path)¶
Like stat but does not follow symbolic links.
- mkdir(path)¶
Create the specified directory.
- mkstemp(suffix='', prefix='', dir=None, mode='wb')¶
A wrap around tempfile.mkstemp creating a file with a unique name. Unlike mkstemp it returns an object with a file-like interface.
- open(filename, mode)¶
Open a file returning its handler.
- realpath(path)¶
Return the canonical version of path eliminating any symbolic links encountered in the path (if they are supported by the operating system).
- remove(path)¶
Remove the specified file.
- rmdir(path)¶
Remove the specified directory.
- stat(path)¶
Perform a stat() system call on the given path.