- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 33 for is_dir (0.08 seconds)
-
internal/lock/lock_nix.go
err = ErrAlreadyLocked } return nil, err } st, err := os.Stat(path) if err != nil { f.Close() return nil, err } if st.IsDir() { f.Close() return nil, &os.PathError{ Op: "open", Path: path, Err: syscall.EISDIR, } } return &LockedFile{File: f}, nil } // TryLockedOpenFile - tries a new write lock, functionality
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 2.8K bytes - Click Count (0) -
internal/lock/lock_solaris.go
err = ErrAlreadyLocked } return nil, err } st, err := os.Stat(path) if err != nil { f.Close() return nil, err } if st.IsDir() { f.Close() return nil, &os.PathError{ Op: "open", Path: path, Err: syscall.EISDIR, } } return &LockedFile{f}, nil } // TryLockedOpenFile - tries a new write lock, functionality
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 2.8K bytes - Click Count (0) -
cmd/os_unix.go
} // Ignore symlinked directories. if !opts.followDirSymlink && typ&os.ModeSymlink == os.ModeSymlink && fi.IsDir() { continue } typ = fi.Mode() & os.ModeType } var nameStr string if typ.IsRegular() { nameStr = string(name) } else if typ.IsDir() { // Use temp buffer to append a slash to avoid string concat. tmp = tmp[:len(name)+1] copy(tmp, name)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.3K bytes - Click Count (0) -
cmd/object-api-getobjectinfo_test.go
} if testCase.result.IsDir != result.IsDir { t.Errorf("Test %d: %s: Expected IsDir flag of the object to be %v, but instead found it to be %v", i+1, instanceType, testCase.result.IsDir, result.IsDir) } } }Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Dec 23 15:46:00 GMT 2022 - 5.6K bytes - Click Count (0) -
cmd/os_other.go
isSysErrTooManySymlinks(err) { continue } return nil, err } // Ignore symlinked directories. if !opts.followDirSymlink && fi.IsDir() { continue } } if fi.IsDir() { // Append SlashSeparator instead of "\" so that sorting is achieved as expected. entries = append(entries, fi.Name()+SlashSeparator) } else if fi.Mode().IsRegular() {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Sep 13 15:14:36 GMT 2023 - 4K bytes - Click Count (0) -
internal/lock/lock_windows.go
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 7.9K bytes - Click Count (0) -
src/packaging/rpm/init.d/fess
exit 1 fi } start() { checkJava [ -x $exec ] || exit 5 # Ensure that the PID_DIR exists (it is cleaned at OS startup time) if [ -n "$PID_DIR" ] && [ ! -e "$PID_DIR" ]; then mkdir -p "$PID_DIR" && chown "$FESS_USER":"$FESS_GROUP" "$PID_DIR" fi if [ -n "$pidfile" ] && [ ! -e "$pidfile" ]; then touch "$pidfile" && chown "$FESS_USER":"$FESS_GROUP" "$pidfile" fiCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 15 06:32:15 GMT 2023 - 3.7K bytes - Click Count (0) -
src/packaging/common/scripts/postrm
update-rc.d fess remove >/dev/null || true fi fi if [ "$REMOVE_DIRS" = "true" ]; then if [ -d "$PID_DIR" ]; then echo -n "Deleting PID directory..." rm -rf "$PID_DIR" && echo " OK" || echo " ERROR: unable to delete directory [$PID_DIR]" fi fi if [ "$REMOVE_USER_AND_GROUP" = "true" ]; then if id "$FESS_USER" > /dev/null 2>&1 ; then userdel "$FESS_USER"
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Dec 10 01:24:02 GMT 2015 - 2.2K bytes - Click Count (0) -
src/packaging/deb/init.d/fess
# Prepare environment mkdir -p "$LOG_DIR" "$DATA_DIR" && chown "$FESS_USER":"$FESS_GROUP" "$LOG_DIR" "$DATA_DIR" # Ensure that the PID_DIR exists (it is cleaned at OS startup time) if [ -n "$PID_DIR" ] && [ ! -e "$PID_DIR" ]; then mkdir -p "$PID_DIR" && chown "$FESS_USER":"$FESS_GROUP" "$PID_DIR" fi if [ -n "$PID_FILE" ] && [ ! -e "$PID_FILE" ]; then touch "$PID_FILE" && chown "$FESS_USER":"$FESS_GROUP" "$PID_FILE" fi
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 15 06:32:15 GMT 2023 - 5.8K bytes - Click Count (0) -
cmd/os_windows.go
// file/directory. if osIsNotExist(err) || isSysErrPathNotFound(err) || isSysErrTooManySymlinks(err) { continue } return err } if fi.IsDir() { // Ignore symlinked directories. continue } typ = fi.Mode() case data.FileAttributes&syscall.FILE_ATTRIBUTE_DIRECTORY != 0: typ = os.ModeDir }
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 5K bytes - Click Count (0)