File tree Expand file tree Collapse file tree 12 files changed +45
-11
lines changed
views/host/file-management Expand file tree Collapse file tree 12 files changed +45
-11
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ func GetGroup(gid uint32) string {
6666const dotCharacter = 46
6767
6868func IsHidden (path string ) bool {
69- return path [0 ] == dotCharacter
69+ base := filepath .Base (path )
70+ return len (base ) > 1 && base [0 ] == dotCharacter
7071}
7172
7273func countLines (path string ) (int , error ) {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export namespace File {
1111 size : number ;
1212 isDir : boolean ;
1313 isSymlink : boolean ;
14+ isHidden : boolean ;
1415 linkPath : string ;
1516 type : string ;
1617 updateTime : string ;
Original file line number Diff line number Diff line change @@ -1468,6 +1468,8 @@ const message = {
14681468 existFileDirHelper : 'The selected file/folder has a duplicate name. Please proceed with caution!' ,
14691469 noSuchFile : 'The file or directory was not found. Please check and try again.' ,
14701470 setting : 'Setting' ,
1471+ showHide : 'Show hidden files' ,
1472+ noShowHide : 'Don’t show hidden files' ,
14711473 } ,
14721474 ssh : {
14731475 autoStart : 'Auto Start' ,
Original file line number Diff line number Diff line change @@ -1409,6 +1409,8 @@ const message = {
14091409 existFileDirHelper : '選択したファイル/フォルダーには同じ名前のものが既に存在します。慎重に操作してください!' ,
14101410 noSuchFile : 'ファイルまたはディレクトリが見つかりませんでした。確認して再試行してください。' ,
14111411 setting : '設定' ,
1412+ showHide : '隠しファイルを表示' ,
1413+ noShowHide : '隠しファイルを表示しない' ,
14121414 } ,
14131415 ssh : {
14141416 autoStart : 'オートスタート' ,
Original file line number Diff line number Diff line change @@ -1395,6 +1395,8 @@ const message = {
13951395 existFileDirHelper : '선택한 파일/폴더에 동일한 이름이 이미 존재합니다. 신중하게 작업하세요!' ,
13961396 noSuchFile : '파일 또는 디렉터리를 찾을 수 없습니다. 확인 후 다시 시도하세요.' ,
13971397 setting : '설정' ,
1398+ showHide : '숨김 파일 표시' ,
1399+ noShowHide : '숨김 파일 숨기기' ,
13981400 } ,
13991401 ssh : {
14001402 autoStart : '자동 시작' ,
Original file line number Diff line number Diff line change @@ -1452,6 +1452,8 @@ const message = {
14521452 existFileDirHelper : 'Fail/folder yang dipilih mempunyai nama yang sama. Sila berhati-hati!' ,
14531453 noSuchFile : 'Fail atau direktori tidak ditemui. Sila periksa dan cuba lagi.' ,
14541454 setting : 'tetapan' ,
1455+ showHide : 'Tunjukkan fail tersembunyi' ,
1456+ noShowHide : 'Jangan tunjukkan fail tersembunyi' ,
14551457 } ,
14561458 ssh : {
14571459 autoStart : 'Mula automatik' ,
Original file line number Diff line number Diff line change @@ -1438,6 +1438,8 @@ const message = {
14381438 existFileDirHelper : 'O arquivo/pasta selecionado tem um nome duplicado. Por favor, prossiga com cautela!' ,
14391439 noSuchFile : 'O arquivo ou diretório não foi encontrado. Por favor, verifique e tente novamente.' ,
14401440 setting : 'configuração' ,
1441+ showHide : 'Mostrar arquivos ocultos' ,
1442+ noShowHide : 'Não mostrar arquivos ocultos' ,
14411443 } ,
14421444 ssh : {
14431445 autoStart : 'Início automático' ,
Original file line number Diff line number Diff line change @@ -1439,6 +1439,8 @@ const message = {
14391439 existFileDirHelper : 'Выбранный файл/папка имеет дублирующееся имя. Пожалуйста, действуйте осторожно!' ,
14401440 noSuchFile : 'Файл или каталог не найдены. Пожалуйста, проверьте и повторите попытку.' ,
14411441 setting : 'настройка' ,
1442+ showHide : 'Показывать скрытые файлы' ,
1443+ noShowHide : 'Не показывать скрытые файлы' ,
14421444 } ,
14431445 ssh : {
14441446 autoStart : 'Автозапуск' ,
Original file line number Diff line number Diff line change @@ -1394,6 +1394,8 @@ const message = {
13941394 existFileDirHelper : '選擇的檔案/資料夾存在同名,請謹慎操作!' ,
13951395 noSuchFile : '找不到該檔案或目錄,請檢查後重試。' ,
13961396 setting : '设置' ,
1397+ showHide : '顯示隱藏檔案' ,
1398+ noShowHide : '不顯示隱藏檔案' ,
13971399 } ,
13981400 ssh : {
13991401 autoStart : '開機自啟' ,
Original file line number Diff line number Diff line change @@ -1390,6 +1390,8 @@ const message = {
13901390 existFileDirHelper : '选择的文件/文件夹存在同名,请谨慎操作!' ,
13911391 noSuchFile : '未能找到该文件或目录,请检查后重试' ,
13921392 setting : '设置' ,
1393+ showHide : '显示隐藏文件' ,
1394+ noShowHide : '不显示隐藏文件' ,
13931395 } ,
13941396 ssh : {
13951397 autoStart : '开机自启' ,
You can’t perform that action at this time.
0 commit comments