[Ttssh2-commit] [6492] チケット #36643 ディレクトリ存在判別

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2016年 9月 23日 (金) 23:55:55 JST


Revision: 6492
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6492
Author:   yutakapon
Date:     2016-09-23 23:55:55 +0900 (Fri, 23 Sep 2016)
Log Message:
-----------
チケット #36643 ディレクトリ存在判別

getfileattr マクロコマンドにサンプルコードを追加した。

Ticket Links:
------------
    http://sourceforge.jp/projects/ttssh2/tracker/detail/36643

Modified Paths:
--------------
    trunk/doc/en/html/macro/command/getfileattr.html
    trunk/doc/ja/html/macro/command/getfileattr.html

-------------- next part --------------
Modified: trunk/doc/en/html/macro/command/getfileattr.html
===================================================================
--- trunk/doc/en/html/macro/command/getfileattr.html	2016-09-23 14:36:56 UTC (rev 6491)
+++ trunk/doc/en/html/macro/command/getfileattr.html	2016-09-23 14:55:55 UTC (rev 6492)
@@ -107,6 +107,20 @@
 endif
 </pre>
 
+<pre class="macro-example">
+name = "C:\test"
+
+getfileattr name
+
+if result &lt; 0 then
+	messagebox "Not found" name
+elseif result &amp; $10 then
+	messagebox "Directory" name
+else
+	messagebox "File" name
+endif
+</pre>
+
 <h2>See also</h2>
 <ul>
   <li><a href="setfileattr.html">setfileattr</a></li>

Modified: trunk/doc/ja/html/macro/command/getfileattr.html
===================================================================
--- trunk/doc/ja/html/macro/command/getfileattr.html	2016-09-23 14:36:56 UTC (rev 6491)
+++ trunk/doc/ja/html/macro/command/getfileattr.html	2016-09-23 14:55:55 UTC (rev 6492)
@@ -107,6 +107,20 @@
 endif
 </pre>
 
+<pre class="macro-example">
+name = "C:\test"
+
+getfileattr name
+
+if result &lt; 0 then
+	messagebox "Not found" name
+elseif result &amp; $10 then
+	messagebox "Directory" name
+else
+	messagebox "File" name
+endif
+</pre>
+
 <h2>\x8EQ\x8F\xC6</h2>
 <ul>
   <li><a href="setfileattr.html">setfileattr</a></li>



Ttssh2-commit メーリングリストの案内
Back to archive index