search for: dirpath

Displaying 20 results from an estimated 116 matches for "dirpath".

2006 Jun 06
4
Checking if a directory is empty using File
Hi, I have one minor issue. I''m trying to check whether a directory is empty given some path to the directory. My code does the following: if(File.directory?(dirpath)) # dirpath = public/images/1 if(File.zero?(dirpath)) FileUtils.rm_rf(dirpath) end end The problem is, while testing this, if I put a file in the directory and run the above code, it still ends up deleting the entire directory which doesn''t make sense since File.zero? should not...
2005 Jul 28
1
[LLVMdev] [patch] gccld not properly constructing paths when checking for bytecode
...;s a patch: Index: lib/System/Unix/Path.inc =================================================================== RCS file: /var/cvs/llvm/llvm/lib/System/Unix/Path.inc,v retrieving revision 1.43 diff -r1.43 Path.inc 436c436,439 < DIR* direntries = ::opendir(path.c_str()); --- > std::string dirPath = path; > if (dirPath[dirPath.size() - 1] != '/') > dirPath += '/'; > DIR* direntries = ::opendir(dirPath.c_str()); 444c447 < Path aPath(path + (const char*)de->d_name); --- > Path aPath(dirPath + (const char*)de->d_name); -- Nicholas Riley...
2023 Jul 05
1
textual analysis - transforming several pdf to txt - naming the files
...hem to txt and give the same names as in the pdf files: SOANE2020FS.txt, EDP2021GS.txt I'm running the following scrip, but the names of txt files that I obtain are: pdftext1, pdftext2, pdftext3... What do I need to change? Thank you very much, Cec?lia Carmo Universidade de Aveiro - Portugal dirpath <- ("/Users/ceciliacarmo/documents/RTextualAnalysis/data/pdfs") library(pdftools) library(dplyr) convertpdf2txt <- function(dirpath){ files <- list.files(dirpath, full.names = T) x <- sapply(files, function(x){ x <- pdftools::pdf_text(x) %>% paste0(colla...
2000 Apr 03
1
2.0.7pre3: smbclient issues
My systems: rh61, 2.2.14 + smbfs-nls.patch. I refer to 2.0.7pre3 as 2.0.7 === 1) "ls" of an empty dir 1a) 1.9.18 doing "ls" to an empty samba dir: smb: \> ls 49550 blocks of size 16384. 33754 blocks available 1b) 2.0.7 doing "ls" to an empty samba dir: smb: \> ls ERRDOS - ERRbadfile (File not found.) listing \* <=======
2014 Mar 05
1
DFS
...e path: informatika/desktop.ini dfs_path_lookup: Conn path = /home/dfs reqpath = informatika/desktop.ini unix_convert called on file "informatika/desktop.ini" stat_cache_lookup: lookup succeeded for name [INFORMATIKA] -> [informatika] unix_convert begin: name = informatika/desktop.ini, dirpath = , start = informatika/desktop.ini is_mangled informatika/desktop.ini ? is_mangled_component informatika/desktop.ini (len 11) ? is_mangled informatika ? is_mangled_component informatika (len 11) ? stat_cache_add: Added entry (7fd828c69ab0:size b) INFORMATIKA -> informatika OpenDir: Can't op...
2023 Jul 05
1
textual analysis - transforming several pdf to txt - naming the files
convertpdf2txt <- function(dirpath){ files <- list.files(dirpath, pattern = "Consoli.*\\.pdf$", full.names = TRUE) files <- chartr("\\", "/", files) x <- lapply(files, function(x){ pdftools::pdf_text(x) %>% paste0(collapse = " ") %>% stringr::str_sq...
2000 May 22
1
Inherit Permissions addition
...ironment for a couple weeks now without any issues (Redhat 6.1). I've only studied the Samba source code for 14 hours or so -- there may be some efficiencies that your more experienced eyes can add to my patch (i.e.. is it necessary to build a full path out of conn->connectpath and conn->dirpath for the dos_stat? or would dos_stat 'ing the conn->dirpath be sufficient?). I also have not modified any documentation. By the way, this is my first contribution to an open source software project. Thank you for the opportunity to help advance such a valuable project. Any comments or fee...
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...} + } + if ( i < 0 ) { + i = cth.num_open; + cth.biggest_in_use = i; + } + } + + + conn->cnum = i; + cth.Connections[i] = conn; + cth.num_open++; + + string_set(&conn->user,""); + string_set(&conn->dirpath,""); + string_set(&conn->connectpath,""); + string_set(&conn->origpath,""); + - ZERO_STRUCTP(conn); - conn->cnum = i; - - bitmap_set(bmap, i); - - num_open++; - - string_set(&conn->user,""); - string_set(&conn->dirpa...
2019 Jun 14
1
Update 4.10.2 to 4.10.4: Cant create files in subdirectorie anymore
...e know ###################################### 481(unix_convert): ?? ??? ? ??? ??? ??? ?unix_convert called on file "sub_dir" 245(stat_cache_lookup): ?? ??? ??? ?stat_cache_lookup: lookup failed for name [SUB_DIR] 682(unix_convert): ?? ??? ? ??? ??? ??? ?unix_convert begin: name = sub_dir, dirpath = ., start = sub_dir 418(is_mangled): ?? ??? ? ??? ??? ??? ?is_mangled sub_dir ? 357(is_mangled_component): ?? ??? ??? ?is_mangled_component sub_dir (len 7) ? 418(is_mangled): ?? ??? ? ??? ??? ??? ?is_mangled sub_dir ? 357(is_mangled_component): ?? ??? ??? ?is_mangled_component sub_dir (len 7) ? 41...
2011 Aug 06
1
3.5.9: logon scripts are not working under non root user
...under all other users. turning on debugging reveals that under non root it's incorrectly parsing the logon script name from config (adding full network path to filename) unix_convert called on file "ancor-srv/netlogon/logon.bat" unix_convert begin: name = ancor-srv/netlogon/logon.bat, dirpath = , start = ancor-srv/netlogon/logon.bat Intermediate not found ancor-srv but it's parsing correctly when login under root user unix_convert called on file "logon.bat" unix_convert begin: name = logon.bat, dirpath = , start = logon.bat stat_cache_add: Added entry (21f694e0:size 9) LO...
2002 Oct 09
3
directories creation troubles
...called on file "\Nuova cartella" [2002/10/08 14:40:18, 3] lib/util.c:(387) unix_clean_name [/Nuova cartella] [2002/10/08 14:40:18, 5] smbd/mangle_hash.c:(368) Checking Nuova cartella for 8.3 [2002/10/08 14:40:18, 5] smbd/filename.c:(193) unix_convert begin: name = Nuova cartella, dirpath = , start = Nuova cartella [2002/10/08 14:40:18, 5] smbd/filename.c:(314) New file Nuova cartella [2002/10/08 14:40:18, 3] lib/util.c:(387) unix_clean_name [Nuova cartella] [2002/10/08 14:40:18, 3] smbd/reply.c:(1209) stat of Nuova cartella failed (No such file or directory) [2002/10/08 14...
2005 Feb 05
5
3.0.11 - configure can't see ldap.h
My server is running OpenBSD 3.6. I wish to join this machine to a Windows 2003 AD domain so Windows clients can copy files to and from it for FTP use. I have untar'd the following files to /usr/src: openldap-stable-20050125.tgz samba-3.0.11.tar.gz When running configure it stops with this error: checking for LDAP support... yes checking ldap.h usability... no checking ldap.h
2014 Dec 16
2
Samba "%G" replacement not working in "Logon script" ?
...not found on the disk. (Of course) Denis P.S. Logfiles: [2014/11/21 20:53:36.616573, 5] ../source3/smbd/filename.c:258(unix_convert) unix_convert called on file "%g.bat" [2014/11/21 20:53:36.616622, 5] ../source3/smbd/filename.c:421(unix_convert) unix_convert begin: name = %g.bat, dirpath = , start = %g.bat [2014/11/21 20:53:36.616705, 5] ../source3/smbd/filename.c:816(unix_convert) New file %g.bat [2014/11/21 20:53:36.616747, 3] ../source3/smbd/vfs.c:1137(check_reduced_name) check_reduced_name [%g.bat] [/data/shares/netlogon] [2014/11/21 20:53:36.616794, 3] ../source3/smbd/vfs.c:...
2018 Jun 14
2
No write access on new shares until smbd is restarted
Using the latest SerNet 4.8.1 build, I'm seeing users being unable to write into newly created shares until smbd is restarted. Here's the relevant log part: [2018/06/14 16:04:29.229329, 5] ../source3/smbd/filename.c:662(unix_convert) unix_convert begin: name = New folder, dirpath = , start = New folder [2018/06/14 16:04:29.229375, 5] ../source3/smbd/vfs.c:1458(check_reduced_name) check_reduced_name: . reduced to /data/fs/2430-ram [2018/06/14 16:04:29.229432, 5] ../source3/smbd/filename.c:1060(unix_convert) New file New folder [2018/06/14 16:04:29.229453, 5] ../source...
2012 Aug 02
0
[PATCH 1/3] ALPHA: make sector size dynamic in extlinux
...t / sector_size; else if (!sysfs_get_offset(devfd, &geo->start)) { - /* OK */ + geo->start /= (sector_size / SECTOR_SIZE); } return rv; @@ -220,6 +232,7 @@ static int patch_file_and_bootblock(int fd, const char *dir, int devfd) struct fat_boot_sector *sbs; char *dirpath, *subpath, *xdirpath; int rv; + unsigned sector_size; dirpath = realpath(dir, NULL); if (!dirpath || stat(dir, &dirst)) { @@ -262,7 +275,8 @@ static int patch_file_and_bootblock(int fd, const char *dir, int devfd) dprintf("subpath = %s\n", subpath); tot...
2002 Nov 05
1
rsync -- batch mode. bug?
Hi all, I am using the following rsync command. rsync --write-batch -av --stats `cat $1` -e ssh user@host:/dirPath/ This is what is happening. 1. I have a list of , say 10 files. 2. On first attempt, all files are successfully rsynced. 3. When, I repeat the same command again, the files are MISSING on the destination machine. 4. From the log, it looks like the files are NOT being transferred, but when the p...
2007 Aug 15
0
Files and folders went 'missing' after creation... ...any idea how to isolate?
...x3e87d0 [2007/08/14 16:27:06, 4] smbd/uid.c:(176) change_to_user: Skipping user change - already user [2007/08/14 16:27:06, 5] smbd/filename.c:(108) unix_convert called on file "New Folder (3)" [2007/08/14 16:27:06, 5] smbd/filename.c:(185) unix_convert begin: name = New Folder (3), dirpath = , start = New Folder (3) [2007/08/14 16:27:06, 5] smbd/filename.c:(335) New file New Folder (3) [2007/08/14 16:27:06, 5] smbd/msdfs.c:(269) is_msdfs_link: New Folder (3) does not exist. [2007/08/14 16:27:06, 3] smbd/msdfs.c:(435) dfs_redirect: Not redirecting 192.168.150.8/usb-disks/New Fol...
2010 Jan 22
0
3.4.5 compile problem on solaris 10
...3 -fPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o gmake: *** [libsmb/clikrb5.o] Error 1 I use a build script it looks like this: PATH=/usr/bin:/usr/local/bin:/usr/sfw/bin:/opt/sfw/bin:/usr/ccs/bin:/global/spool/openssl-0.9.8l/bin:/global/spool/krb5-1.7/bin export PATH HOSTNAME=`/usr/bin/hostname` DIRPATH="/global/spool/openssl-0.9.8l /global/spool/krb5-1.7 /opt/csw" for dir in $DIRPATH ; do CPPFLAGS="$CPPFLAGS -I$dir/include" CFLAGS="$CFLAGS -Wl,-R$dir/lib" LDFLAGS="$LDFLAGS -L$dir/lib" done LDFLAGS="$LDFLAGS -L$dir/li...
2003 May 22
0
Lost Delayed-Write Data { from win2k advanced server to 2.2.5 }
...lient.com/R292 _JOURNAL_WICH/R292_JOURNAL_WICH_D_2003.05.21.17.09.31.805] Checking R292_JOURNAL_WICH_D_2003.05.21.17.09.31.805 for 8.3 unix_convert begin: name = dataserver11.etraffic.myclient.com/dataserver11.etraffic.myclient.com/R292_J OURNAL_WICH/R292_JOURNAL_WICH_D_2003.05.21.17.09.31.805, dirpath = dataserver11.etraffic.myclient.com/dataserver11.etraffic.myclient.com/R292_J OURNAL_WICH, start = R292_JOURNAL_WICH_D_2003.05.21.17.09.31.805 New file R292_JOURNAL_WICH_D_2003.05.21.17.09.31.805 unix_mode(dataserver11.etraffic.myclient.com/dataserver11.etraffic.myclient. com/R292_JOURNAL_WICH...
2003 Sep 09
2
Samba3.0.0rc3 -> charset
Hi there, today I installed samba 3.0.0 rc 3 on redhat 9. Now I got following problem: "Illegal multibyte sequence" -> and all processors have a cpu-state of 99,9% while reading files... It seems to me that the iconv string does not work properly with my charset for german. Here're the entries from my smb.conf: unix charset = ISO-8859-15 display charset =