mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
refactor: replace "folder" with "directory" across file handling components and tests
This commit is contained in:
1 parent
7e50c8e06c
commit
cdd22634e0
18 files changed
+150
-104
No files matched your search
@@ -5,7 +5,7 @@ export interface File {
|
||||
|
||||
const fileTypes = new Map([
|
||||
['file', '-f'],
|
||||
['folder', '-d'],
|
||||
['directory', '-d'],
|
||||
['link', '-L'],
|
||||
['socket', '-S'],
|
||||
])
|
||||
|
||||
@@ -12,7 +12,7 @@ describe('buildFileCheckCmd function', () => {
|
||||
output: ['test', '-f', '/etc/passwd'],
|
||||
},
|
||||
{
|
||||
input: { path: '/etc', type: 'folder' },
|
||||
input: { path: '/etc', type: 'directory' },
|
||||
output: ['test', '-d', '/etc'],
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user