Documentation
¶
Index ¶
- func Element(path string) (string, error)
- func Exist(path string) bool
- func Ideapath(path string) error
- func Lin2win(path string) string
- func Project(path string) (string, error)
- func Projectlist() []string
- func RmProtocol(path string) string
- func Safepath(path string) error
- func Seq(path string) (string, error)
- func Seqnum(path string) (int, error)
- func Seqnum2Sharp(filename string) (string, int, error)
- func Sharp2Seqnum(path string, n int) (string, error)
- func Shot(path string) (string, error)
- func TEMP() string
- func Task(path string) (string, error)
- func Vernum(path string) (int, int, error)
- func Win2lin(path string) string
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lin2win ¶
Lin2win 함수는 리눅스 경로를 윈도우즈 경로로 바꾼다.
Example ¶
package main import ( "fmt" "github.com/digital-idea/dipath" ) func main() { fmt.Println(dipath.Lin2win("/show/TEMP/tmp")) }
Output: \\10.0.200.100\show_TEMP\tmp
func RmProtocol ¶
RmProtocol 함수는 웹에서 파일을 드레그시 붙는 file:// 형태의 프로토콜 문자열을 제거한다.
func Safepath ¶
Safepath 함수는 입력받은 경로가 소유자,그룹,손님이 555권한을 가지도록 설정한다. 이 권한은 전 사원이 읽고 실행만 가능하다. 삼바서버에서 마우스 드레그사고를 방지한다. 회사는 주요 상위 경로를 이 권한으로 설정하고 폴더권한을 보호한다. 예) shot 상위폴더
func Seqnum2Sharp ¶
Seqnum2Sharp 함수는 경로와 파일명을 받아서 시퀀스부분을 #문자열로 바꾸고 시퀀스의 숫자를 int로 바꾼다. "test.0002.jpg" -> "test.####.jpg", 2, nil
func Sharp2Seqnum ¶
Sharp2Seqnum 함수는 경로의 #문자를 숫자(n)로 치환하는 함수이다.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.