mirror of
https://github.com/filegator/filegator.git
synced 2025-08-12 09:43:59 +02:00
Added chmod perm, modal to change, api with local/ftp/sftp (#399)
Read a fill current permissions for local driver Finished permissions for ftp driver, read and change Read permissions for sftp adapter Created FilegatorFtp for a cleaner permissions integration Implemented recursive chmod options for files/folders Modified tests to cover permissions Lint frontend permissions component
This commit is contained in:
@@ -102,6 +102,7 @@ class FilesystemTest extends TestCase
|
||||
'name' => '..',
|
||||
'size' => 0,
|
||||
'time' => 0,
|
||||
'permissions' => -1
|
||||
],
|
||||
],
|
||||
]));
|
||||
@@ -123,6 +124,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'back',
|
||||
'path' => '/john',
|
||||
'name' => '..',
|
||||
'permissions' => -1,
|
||||
'size' => 0,
|
||||
'time' => 0,
|
||||
],
|
||||
@@ -130,6 +132,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'file',
|
||||
'path' => '/john/johnsub/john2.txt',
|
||||
'name' => 'john2.txt',
|
||||
'permissions' => 644,
|
||||
'size' => 0,
|
||||
'time' => 0,
|
||||
],
|
||||
@@ -153,6 +156,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'dir',
|
||||
'path' => '/johnsub',
|
||||
'name' => 'johnsub',
|
||||
'permissions' => 755,
|
||||
'size' => 0,
|
||||
'time' => -1,
|
||||
],
|
||||
@@ -160,6 +164,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'file',
|
||||
'path' => '/john.txt',
|
||||
'name' => 'john.txt',
|
||||
'permissions' => 644,
|
||||
'size' => 0,
|
||||
'time' => -1,
|
||||
],
|
||||
@@ -184,6 +189,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'back',
|
||||
'path' => '/',
|
||||
'name' => '..',
|
||||
'permissions' => -1,
|
||||
'size' => 0,
|
||||
'time' => 0,
|
||||
],
|
||||
@@ -191,6 +197,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'file',
|
||||
'path' => '/johnsub/john2.txt',
|
||||
'name' => 'john2.txt',
|
||||
'permissions' => 644,
|
||||
'size' => 0,
|
||||
'time' => 0,
|
||||
],
|
||||
@@ -859,6 +866,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'file',
|
||||
'path' => '/john.txt',
|
||||
'name' => 'john.txt',
|
||||
'permissions' => 644,
|
||||
'size' => 0,
|
||||
'time' => -1,
|
||||
],
|
||||
@@ -874,6 +882,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'back',
|
||||
'path' => '/',
|
||||
'name' => '..',
|
||||
'permissions' => -1,
|
||||
'size' => 0,
|
||||
'time' => -1,
|
||||
],
|
||||
@@ -881,6 +890,7 @@ class FilesystemTest extends TestCase
|
||||
'type' => 'file',
|
||||
'path' => '/john.txt',
|
||||
'name' => 'john.txt',
|
||||
'permissions' => 644,
|
||||
'size' => 0,
|
||||
'time' => -1,
|
||||
],
|
||||
|
Reference in New Issue
Block a user